[Zope3-checkins] CVS: Zope3/src/zope/schema - interfaces.py:1.31

Sidnei da Silva sidnei at x3ng.com.br
Mon Aug 25 15:59:45 EDT 2003


Update of /cvs-repository/Zope3/src/zope/schema
In directory cvs.zope.org:/tmp/cvs-serv5230/src/zope/schema

Modified Files:
	interfaces.py 
Log Message:
Reordered some stuff on the IField interface. Made getInterfaces() of MessageCatalog a classmethod, as it seems to be the right thing here (it would fail in getFactoriesFor() of the Factory Service otherwise). Please, if someone understands whats the right thing to do here (maybe its creating an instance?) fix accordingly. Added better factory ids for default fields

=== Zope3/src/zope/schema/interfaces.py 1.30 => 1.31 ===
--- Zope3/src/zope/schema/interfaces.py:1.30	Fri Aug 15 20:44:50 2003
+++ Zope3/src/zope/schema/interfaces.py	Mon Aug 25 14:59:44 2003
@@ -131,6 +131,20 @@
                           then this is the value to use""")
         )
 
+    order = Int(
+        title=_(u"Field Order"),
+        description=_(u"""\
+        The order attribute can be used to determine the order in
+        which fields in a schema were defined. If one field is created
+        after another (in the same thread), its order will be
+        greater.
+
+        (Fields in separate threads could have the same order.)
+        """),
+        required=True,
+        readonly=True,
+        )
+
     def constraint(value):
         u"""Check a customized contraint on the value.
 
@@ -147,20 +161,6 @@
         It checks everything specific to a Field and also checks
         with the additional constraint.
         """
-
-    order = Int(
-        title=_(u"Field Order"),
-        description=_(u"""\
-        The order attribute can be used to determine the order in
-        which fields in a schema were defined. If one field is created
-        after another (in the same thread), its order will be
-        greater.
-
-        (Fields in separate threads could have the same order.)
-        """),
-        required=True,
-        readonly=True,
-        )
 
     def get(object):
         """Get the value of the field for the given object."""




More information about the Zope3-Checkins mailing list