[Zope3-checkins] SVN: Zope3/trunk/src/zope/formlib/ Merge from 3.2 branch (I had almost forgotten about it):

Philipp von Weitershausen philikon at philikon.de
Sat Aug 12 06:35:09 EDT 2006


Log message for revision 69418:
  Merge from 3.2 branch (I had almost forgotten about it):
   Log message for revision 69301:
    Fix #681: IFormFields is missing declaration for omit()
  

Changed:
  U   Zope3/trunk/src/zope/formlib/form.py
  U   Zope3/trunk/src/zope/formlib/interfaces.py

-=-
Modified: Zope3/trunk/src/zope/formlib/form.py
===================================================================
--- Zope3/trunk/src/zope/formlib/form.py	2006-08-12 10:33:10 UTC (rev 69417)
+++ Zope3/trunk/src/zope/formlib/form.py	2006-08-12 10:35:09 UTC (rev 69418)
@@ -148,7 +148,7 @@
         return self.__class__(*[self[name] for name in names])
 
     def omit(self, *names):
-        """Return a modified instance with an ordered subset of fields."""
+        """Return a modified instance omitting given fields."""
         return self.__class__(*[ff for ff in self if ff.__name__ not in names])
 
 Fields = FormFields

Modified: Zope3/trunk/src/zope/formlib/interfaces.py
===================================================================
--- Zope3/trunk/src/zope/formlib/interfaces.py	2006-08-12 10:33:10 UTC (rev 69417)
+++ Zope3/trunk/src/zope/formlib/interfaces.py	2006-08-12 10:35:09 UTC (rev 69418)
@@ -515,6 +515,10 @@
         IFormFields that has the named fields in the specified order.
         """
 
+    def omit(*names):
+        """Omit fields with given names
+        """
+
 SKIP_UNAUTHORIZED = 2
 DISPLAY_UNWRITEABLE = 4
 



More information about the Zope3-Checkins mailing list