[Zope3-dev] Riddle: zope.interface versus zope.formlib
Lennart Regebro
regebro at gmail.com
Wed Aug 23 19:13:25 EDT 2006
On 8/23/06, Stephan Richter <srichter at cosmos.phy.tufts.edu> wrote:
> If you ask zope.formlib (form.py, line 227)::
>
> # Adapt context, if necessary
> interface = field.interface
> ...
> adapter = interface(context)
>
> Here the answer would be: <InterfaceClass __main__.IBar>
This seem like superfluous information to me. You can get that
information from the field. I don't see what use it would be to store
it on the attribute.
More information about the Zope3-dev
mailing list