[Zope3-Users] Registering adapter for ListSequence widget in tests
Darryl Cousins
darryl at darrylcousins.net.nz
Wed Sep 6 08:41:36 EDT 2006
Cheers Stephan,
Yup. I added:
>>> provideAdapter(CollectionInputWidget,[ISequence, \
... IBrowserRequest], \
... IInputWidget)
To the test and now more form can be rendered in the doctest.
Many thanks,
Darryl
On Wed, 2006-09-06 at 06:58 -0400, Stephan Richter wrote:
> On Wednesday 06 September 2006 00:55, Darryl Cousins wrote:
> > Following test setup formula in zope.app.form.browser I get this:
> >
> > >>> provideAdapter(ListSequenceWidget,[IList,IField,IBrowserRequest], \
> > ... IInputWidget,)
>
> You need a second adapter adapting just IList to IInputWidget. Here is what
> the configuration of zope.app.form.browser does:
>
> <view
> type="zope.publisher.interfaces.browser.IBrowserRequest"
> for="zope.schema.interfaces.ISequence"
> provides="zope.app.form.interfaces.IInputWidget"
> factory=".CollectionInputWidget"
> permission="zope.Public"
> />
>
> Regards,
> Stephan
More information about the Zope3-users
mailing list