Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated adapter API as described in: http://mail.zope.org/pipermail/zope3-dev/2004-July/011537.html - query/getAdapter now require a name argument and ignore whether the object being adapted provides or conforms to the interface. - New functions 'getAdapterInContext' and 'queryAdapterInContext' can be used to do content-dependent simple adapation. They will return the object being adapted if it provides the desired interface and will return the result of calling __conform__ if the object conforms to the interface. IMPORTANT To do simple adaptation, just call the desired interface: adapter = iface(ob) or iface(ob, default)
- Loading branch information