Laurence Rowe wrote:
From the Interface.__call__ docstring: "If an object already implements the interface, then it will be returned"

queryAdapter is looking in the adapter registry.

You have not registered any adapters.

So this looks like the expected behaviour to me.

Documented maybe, expected no.

queryAdapter, for me, is "starting with the supplied object, get me something that implements the supplied interface and return None if no such object can be obtained".

If there's another function which does this, fine, if not, then I maintain the current behaviour is not correct...

Chris

--
Simplistix - Content Management, Zope & Python Consulting
           - http://www.simplistix.co.uk
_______________________________________________
Zope3-dev mailing list
Zope3-dev@zope.org
Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com

Reply via email to