[Zope3-checkins] SVN: Zope3/trunk/src/zope/app/form/__init__.py Refactored CustomWidgetFactory.__init__.

Marius Gedminas marius at pov.lt
Tue Jul 27 10:22:26 EDT 2004


Log message for revision 26790:
  Refactored CustomWidgetFactory.__init__.
  
  


Changed:
  U   Zope3/trunk/src/zope/app/form/__init__.py


-=-
Modified: Zope3/trunk/src/zope/app/form/__init__.py
===================================================================
--- Zope3/trunk/src/zope/app/form/__init__.py	2004-07-27 14:21:49 UTC (rev 26789)
+++ Zope3/trunk/src/zope/app/form/__init__.py	2004-07-27 14:22:26 UTC (rev 26790)
@@ -81,12 +81,9 @@
     """Custom Widget Factory."""
     implements(IViewFactory)
 
-    def __init__(self, *args, **kw):
-        self._widget_factory = args[0]
-        if len(args) > 1:
-            self.args = args[1:]
-        else:
-            self.args = ()
+    def __init__(self, widget_factory, *args, **kw):
+        self._widget_factory = widget_factory
+        self.args = args
         self.kw = kw
 
     def __call__(self, context, request):



More information about the Zope3-Checkins mailing list