[Zope3-Users] Re: Registering adapter for ListSequence widget in tests

2006-09-06 Thread Philipp von Weitershausen
TAHARA Yusei wrote: I think you should use zope.app.testing.ztapi.provideAdapter instead. No! ztapi.provideAdapter is discouraged. zope.component.provideAdapter is the recommended spelling. Philipp ___ Zope3-users mailing list

Re: [Zope3-Users] Re: Registering adapter for ListSequence widget in tests

2006-09-06 Thread TAHARA Yusei
At Wed, 06 Sep 2006 09:29:15 +0200, Philipp von Weitershausen wrote: TAHARA Yusei wrote: I think you should use zope.app.testing.ztapi.provideAdapter instead. No! ztapi.provideAdapter is discouraged. zope.component.provideAdapter is the recommended spelling. Oh, sorry. I did not know

Re: [Zope3-Users] Re: Registering adapter for ListSequence widget in tests

2006-09-06 Thread Philipp von Weitershausen
TAHARA Yusei wrote: At Wed, 06 Sep 2006 09:29:15 +0200, Philipp von Weitershausen wrote: TAHARA Yusei wrote: I think you should use zope.app.testing.ztapi.provideAdapter instead. No! ztapi.provideAdapter is discouraged. zope.component.provideAdapter is the recommended spelling. Oh, sorry. I

Re: [Zope3-Users] Re: Registering adapter for ListSequence widget in tests

2006-09-06 Thread Darryl Cousins
Ok. Thanks Tahara and Philipp. I am using component.provideAdapter. What I am having trouble with is registering ListSequenceWidget for use in a doctest. I believe the matching zcml from zope.form.browser configure is: view type=zope.publisher.interfaces.browser.IBrowserRequest