[Zope3-Users] stuck with zope.schema.List and subwidget
    Stephan Richter 
    srichter at cosmos.phy.tufts.edu
       
    Sun Aug 28 18:49:15 EDT 2005
    
    
  
On Friday 26 August 2005 19:01, Christian Lueck wrote:
> author_w = CustomWidgetFactory(ObjectWidget, Person)
>
> class ArticleEditView(EditView):
>     authors_widget = CustomWidgetFactory(SequenceWidget,
> subwidget=author_w)
>
>
> Instead of SequenceWidget I tried ListSequenceWidget, too.
>
> But I allways get the error-message:
> __init__() takes at least 4 arguments (3 given)
The problem, I think (actually I just checked, so I know ;-), is that 
CustomWidgetFactory was not designed to work well with advanced widgets, i.e. 
widgets that have more constructor arguments beyond the field and the 
request.
Regards,
Stephan
-- 
Stephan Richter
CBU Physics & Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training
    
    
More information about the Zope3-users
mailing list