[Zope3-Users] Registering adapter for ListSequence widget in tests
Stephan Richter
srichter at cosmos.phy.tufts.edu
Wed Sep 6 06:58:45 EDT 2006
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
--
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