[Zope-dev] component registry navelgazing
Fabio Tranchitella
kobold at kobold.it
Mon Jun 13 03:01:39 EDT 2011
* 2011-06-12 22:49, Chris McDonough wrote:
> This seems slightly inconsistent with the adaptation worldview imposed by
> getAdapter/queryAdapter. I think it would be more consistent if
> "c.queryAdapter(IFoo, foo)" returned foo if foo already implemented IFoo
> and there was no other more specific adapter registered for the IFoo/foo
> pair in the registry, no?
+1, way more consistent than returning None.
Regards,
Fabio
More information about the Zope-Dev
mailing list