[Checkins] SVN: z3c.form/branches/fieldsandcontentproviders/src/z3c/form/contentprovider.txt remove useless code
Godefroid Chapelle
gotcha at bubblenet.be
Fri Mar 12 06:43:37 EST 2010
Log message for revision 109923:
remove useless code
Changed:
U z3c.form/branches/fieldsandcontentproviders/src/z3c/form/contentprovider.txt
-=-
Modified: z3c.form/branches/fieldsandcontentproviders/src/z3c/form/contentprovider.txt
===================================================================
--- z3c.form/branches/fieldsandcontentproviders/src/z3c/form/contentprovider.txt 2010-03-12 11:40:54 UTC (rev 109922)
+++ z3c.form/branches/fieldsandcontentproviders/src/z3c/form/contentprovider.txt 2010-03-12 11:43:36 UTC (rev 109923)
@@ -17,7 +17,7 @@
Test setup
----------
Before we can use a widget manager, the ``IFieldWidget`` adapter
-has to be registered for the ``ITextLine`` field:
+has to be registered for the ``ITextLine`` field::
>>> import zope.component
>>> import zope.interface
@@ -53,8 +53,7 @@
... required=True)
...
-We want to insert a content provider between the fields.
-
+We will insert a content provider between the fields.
We define a test content provider that prints extra help text::
>>> from zope.contentprovider.provider import ContentProviderBase
@@ -66,10 +65,6 @@
... def render(self):
... return '<div class="ex-help">Help about person %s</div>' % self.person
-
- >>> from z3c.form.testing import setupFormDefaults
- >>> setupFormDefaults()
-
Form definition
---------------
@@ -83,7 +78,6 @@
To insert content providers, the following steps are needed :
1. the form class must implement ``IFieldsAndContentProviderForm``
-
2. the class must have a ``contentProviders`` attribute that is an instance
of the ``ContentProviders`` class.
More information about the checkins
mailing list