[Zope3-dev] Re: [Zope3-checkins] SVN:
Zope3/trunk/src/zope/app/form/browser/metaconfigure.py Added
conditional use of class interfaces to configure widget
attributes ('widget' directive). In some cases,
a widget class can be a function (used in double-dispatch p
Fred Drake
fdrake at gmail.com
Fri Aug 6 10:11:09 EDT 2004
On Thu, 5 Aug 2004 19:47:56 -0400 (EDT),
Garrett Smith <garrett at mojave-corp.com> wrote in a checkin comment:
> In cases where a function is specified as the 'class' attribute, additional widget paramters
> (e.g. width, height, etc.) are silently ignored.
This seems bad. I see a couple of approaches to dealing with this
that would make sense, though:
- Don't be silent, raise an exception. This lets it be known that
there's a bug in the configuration.
- Use a CustomWidgetFactory that calls the function and then sets the
attributes on the resulting widgets.
I prefer the second option myself.
-Fred
--
Fred L. Drake, Jr. <fdrake at gmail.com>
Zope Corporation
More information about the Zope3-dev
mailing list