[Zope-dev] zope.component: calling an Interface and calling queryAdapter give differing results

Chris Withers chris at simplistix.co.uk
Tue Aug 19 18:13:39 EDT 2008


Philipp von Weitershausen wrote:
> No, it's not a bug. This is in fact a feature (like it or not). 

Well, assuming enough people *don't* like it, and I think that's the 
case here, then it should probably change...

> {query|get}Adapter will always try to look up an adapter, whether or not 
> the object provides the interface. So the behaviour Chris observed is 
> indeed intended. I agree it could be documented better.

I'd suggest thoroughly reading this book from a software design perspective:

http://www.amazon.com/gp/product/0465067107

cheers,

Chris

-- 
Simplistix - Content Management, Zope & Python Consulting
            - http://www.simplistix.co.uk


More information about the Zope-Dev mailing list