[Zope3-checkins] SVN: Zope3/branches/3.2/src/zope/formlib/ Fix #681: IFormFields is missing declaration for omit()

Philipp von Weitershausen philikon at philikon.de
Sun Jul 30 14:17:15 EDT 2006


Log message for revision 69301:
  Fix #681: IFormFields is missing declaration for omit()
  
  

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

-=-
Modified: Zope3/branches/3.2/src/zope/formlib/form.py
===================================================================
--- Zope3/branches/3.2/src/zope/formlib/form.py	2006-07-30 17:13:46 UTC (rev 69300)
+++ Zope3/branches/3.2/src/zope/formlib/form.py	2006-07-30 18:17:14 UTC (rev 69301)
@@ -147,7 +147,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/branches/3.2/src/zope/formlib/interfaces.py
===================================================================
--- Zope3/branches/3.2/src/zope/formlib/interfaces.py	2006-07-30 17:13:46 UTC (rev 69300)
+++ Zope3/branches/3.2/src/zope/formlib/interfaces.py	2006-07-30 18:17:14 UTC (rev 69301)
@@ -513,6 +513,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