[Interface-dev] Re: Some thoughts on attribute specifications in
interfaces
Jim Fulton
jim at zope.com
Tue Jun 15 12:42:35 EDT 2004
Jim Fulton wrote:
...
> Consider the problem of displaying an object attribute on a form.
> Currently, we "bind" the field to the object and then get an adapter
> (view) on the bound field. I think a better way would be to get a
> three-object adapter (view) on the field value specification, the
> attribute specification, and the object that provides the schema.
> This allows us to dispatch to an adapter based on the value
> specification, which is generally most important for selecting display
> components, the attribute specification, and the object type.
This isn't quire right. We'll actually get 4-object adapters,
including the request in the collection of objects being adapted.
Jim
--
Jim Fulton mailto:jim at zope.com Python Powered!
CTO (540) 361-1714 http://www.python.org
Zope Corporation http://www.zope.com http://www.zope.org
More information about the Interface-dev
mailing list