On Tue, Jan 23, 2007 at 04:51:30PM +0100, Philipp von Weitershausen wrote:
> Jim Fulton wrote:
> >Why not just use:
> >
> >   <adapter
> >       for="zope.schema.interfaces.ITextLine
> >            zope.publisher.interfaces.browser.IBrowserRequest"
> >       provides="zope.app.form.interfaces.IInputWidget"
> >       factory=".TextWidget"
> >       permission="zope.Public"
> >       />
> >
> >That's what I would do.
> >
> >I might even hack the TextWidget so I could just do:
> >
> >   <adapter
> >       factory=".TextWidget"
> >       permission="zope.Public"
> >       />
> >
> >I'd be happy to deprecate the view directive.
> 
> +1

I converted all view directives in that ZCML file to adapter
directives in revision 72195.

Also, I needed to register all the input widgets with
ISimpleInputWidget as the provided interface, instead of IInputWidget,
so that the errors method is accessible.

Albertas
_______________________________________________
Zope3-dev mailing list
Zope3-dev@zope.org
Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com

Reply via email to