[Zope3-checkins] SVN: Zope3/trunk/src/zope/schema/README.txt Typo
and removed trailing whitespaces.
Ruslan Spivak
rspivak at nuxeo.com
Fri Aug 19 17:51:48 EDT 2005
Log message for revision 38011:
Typo and removed trailing whitespaces.
Changed:
U Zope3/trunk/src/zope/schema/README.txt
-=-
Modified: Zope3/trunk/src/zope/schema/README.txt
===================================================================
--- Zope3/trunk/src/zope/schema/README.txt 2005-08-19 20:47:39 UTC (rev 38010)
+++ Zope3/trunk/src/zope/schema/README.txt 2005-08-19 21:51:47 UTC (rev 38011)
@@ -51,8 +51,8 @@
... description=u'URL of the Bookmark',
... required=True)
...
-
-Now we create a class that implements this interface and create an isntance of
+
+Now we create a class that implements this interface and create an instance of
it:
>>> class Bookmark(object):
@@ -131,7 +131,7 @@
>>> class IContact(zope.interface.Interface):
... """Provides access to basic contact information."""
- ...
+ ...
... first = zope.schema.TextLine(title=u"First name")
...
... last = zope.schema.TextLine(title=u"Last name")
@@ -154,7 +154,7 @@
>>> class Contact(object):
... zope.interface.implements(IContact)
- ...
+ ...
... def __init__(self, first, last, email, address, pc):
... self.first = first
... self.last = last
@@ -165,9 +165,9 @@
Now you can see if an instance of ``Contact`` actually implements the
schema:
- >>> someone = Contact(u'Tim', u'Roberts', u'tim at roberts', u'',
+ >>> someone = Contact(u'Tim', u'Roberts', u'tim at roberts', u'',
... u'12032-3492')
-
+
>>> for field in zope.schema.getFields(IContact).values():
... bound = field.bind(someone)
... bound.validate(bound.get(someone))
More information about the Zope3-Checkins
mailing list