[Checkins] SVN: zope.schema/trunk/src/zope/schema/_bootstrapfields.py trimmed whitespace
Christian Zagrodnick
cz at gocept.com
Mon Mar 23 08:49:33 EDT 2009
Log message for revision 98316:
trimmed whitespace
Changed:
U zope.schema/trunk/src/zope/schema/_bootstrapfields.py
-=-
Modified: zope.schema/trunk/src/zope/schema/_bootstrapfields.py
===================================================================
--- zope.schema/trunk/src/zope/schema/_bootstrapfields.py 2009-03-23 12:23:06 UTC (rev 98315)
+++ zope.schema/trunk/src/zope/schema/_bootstrapfields.py 2009-03-23 12:49:32 UTC (rev 98316)
@@ -333,9 +333,9 @@
class Bool(Field):
"""A field representing a Bool."""
-
+
implements(IFromUnicode)
-
+
_type = type(True)
if _type is not type(1):
@@ -354,7 +354,7 @@
if isinstance(value, int):
value = bool(value)
Field.set(self, object, value)
-
+
def fromUnicode(self, str):
"""
>>> b = Bool()
@@ -372,8 +372,8 @@
v = str == 'True' or str == 'true'
self.validate(v)
return v
-
+
class Int(Orderable, Field):
"""A field representing an Integer."""
_type = int, long
More information about the Checkins
mailing list