[Zope3-Users] worldcookery.browser.widget.DynamicSequenceWidget

Ulrich P. Klein klein at ulrich-p-klein.de
Mon Mar 20 18:23:01 EST 2006



Marco Mariani wrote:
> 
> How should I modify the custom widget in the recipe examples to make it
> work with 3.2.0 ?
> As it is, the program does not work from chapter 7 onward
> 
> I get this on zope.app.form.browser.SimpleInputWidget at every attempt to
> display the widget:
> 
>     instance = self._widget_factory(*args)
> TypeError: __init__() takes exactly 4 arguments (3 given)
> 

--- browser/widget.py.orig  2004-07-10 17:59:36.000000000 +0200 
+++ browser/widget.py      2006-03-19 18:28:16.000000000 +0100 
@@ -1,9 +1,9 @@ 
 from zope.app import zapi 
 from zope.app.form.interfaces import IInputWidget 
-from zope.app.form.browser.widget import SimpleInputWidget 
+from zope.app.form.browser.sequencewidget import SequenceWidget 
 from zope.app.pagetemplate.viewpagetemplatefile import ViewPageTemplateFile 
 
-class DynamicSequenceWidget(SimpleInputWidget): 
+class DynamicSequenceWidget(SequenceWidget): 
     """Widget for (simple) sequences that does not require the form to be 
     reloaded for every change."""

--
View this message in context: http://www.nabble.com/worldcookery.browser.widget.DynamicSequenceWidget-t1179980.html#a3504247
Sent from the Zope3 - users forum at Nabble.com.



More information about the Zope3-users mailing list