[Checkins] SVN: z3c.form/trunk/src/z3c/form/ Fix data gammar usage

Encolpe DEGOUTE encolpe.degoute at free.fr
Sat Sep 13 09:54:24 EDT 2008


Log message for revision 91117:
  Fix data gammar usage

Changed:
  U   z3c.form/trunk/src/z3c/form/converter.py
  U   z3c.form/trunk/src/z3c/form/converter.txt
  U   z3c.form/trunk/src/z3c/form/form.txt
  U   z3c.form/trunk/src/z3c/form/group.txt
  U   z3c.form/trunk/src/z3c/form/interfaces.py

-=-
Modified: z3c.form/trunk/src/z3c/form/converter.py
===================================================================
--- z3c.form/trunk/src/z3c/form/converter.py	2008-09-13 13:54:04 UTC (rev 91116)
+++ z3c.form/trunk/src/z3c/form/converter.py	2008-09-13 13:54:24 UTC (rev 91117)
@@ -229,7 +229,7 @@
                 seek = value.seek
                 read = value.read
             except AttributeError, e:
-                raise ValueError(_('Bytes data is not a file object'), e)
+                raise ValueError(_('Bytes data are not a file object'), e)
             else:
                 seek(0)
                 data = read()

Modified: z3c.form/trunk/src/z3c/form/converter.txt
===================================================================
--- z3c.form/trunk/src/z3c/form/converter.txt	2008-09-13 13:54:04 UTC (rev 91116)
+++ z3c.form/trunk/src/z3c/form/converter.txt	2008-09-13 13:54:24 UTC (rev 91117)
@@ -456,7 +456,7 @@
   >>> fudc.toFieldValue(myUpload) is None
   Traceback (most recent call last):
   ...
-  ValueError: (u'Bytes data is not a file object', ...AttributeError...)
+  ValueError: (u'Bytes data are not a file object', ...AttributeError...)
 
 When the file upload widget is not used and a text-based widget is desired,
 then the regular field data converter will be chosen. Using a text widget,

Modified: z3c.form/trunk/src/z3c/form/form.txt
===================================================================
--- z3c.form/trunk/src/z3c/form/form.txt	2008-09-13 13:54:04 UTC (rev 91116)
+++ z3c.form/trunk/src/z3c/form/form.txt	2008-09-13 13:54:24 UTC (rev 91117)
@@ -172,7 +172,7 @@
 widget has to be created for the field. There are cases when a field
 declaration might be ignored. The following reasons come to mind:
 
-* No widget is created if the data is not accessible in the content.
+* No widget is created if the data are not accessible in the content.
 * A custom widget manager has been registered to specifically ignore a field.
 
 In our simple example, all fields will be converted to widgets.
@@ -780,7 +780,7 @@
     </body>
   </html>
 
-As you can see, the data is being pulled in from the context for the edit
+As you can see, the data are being pulled in from the context for the edit
 form. Next we will look at the behavior when submitting the form.
 
 
@@ -1028,7 +1028,7 @@
   </html>
 
 Note that the name displayed in the form is identical to the one in the
-dictionary. Let's now submit a form to ensure that the data is also written to
+dictionary. Let's now submit a form to ensure that the data are also written to
 the dictionary:
 
   >>> request = TestRequest(form={

Modified: z3c.form/trunk/src/z3c/form/group.txt
===================================================================
--- z3c.form/trunk/src/z3c/form/group.txt	2008-09-13 13:54:04 UTC (rev 91116)
+++ z3c.form/trunk/src/z3c/form/group.txt	2008-09-13 13:54:24 UTC (rev 91117)
@@ -423,7 +423,7 @@
   >>> print testing.render(edit, './/xmlns:i')
   <i>Data successfully updated.</i>
 
-and the data is correctly updated:
+and the data are correctly updated:
 
   >>> reg.firstName
   u'Stephan'

Modified: z3c.form/trunk/src/z3c/form/interfaces.py
===================================================================
--- z3c.form/trunk/src/z3c/form/interfaces.py	2008-09-13 13:54:04 UTC (rev 91116)
+++ z3c.form/trunk/src/z3c/form/interfaces.py	2008-09-13 13:54:24 UTC (rev 91117)
@@ -93,13 +93,13 @@
 
     def __init__(schema, data, context):
         """The data proxy is instantiated using the schema it represents, the
-        data fulfilling the schema and the context in which the data is
+        data fulfilling the schema and the context in which the data are
         validated.
         """
 
     __context__ = zope.schema.Field(
         title=_('Context'),
-        description=_('The context in which the data is validated.'),
+        description=_('The context in which the data are validated.'),
         required=True)
 
 class IValidator(zope.interface.Interface):
@@ -835,7 +835,7 @@
 
     action = zope.schema.URI(
         title=_('Action'),
-        description=_('The action defines the URI to which the form data is '
+        description=_('The action defines the URI to which the form data are '
                       'sent.'),
         required=True)
 



More information about the Checkins mailing list