On Jan 24, 2007, at 8:44 PM, Tres Seaver wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Chris Withers wrote:
Fred Drake wrote:
On 1/24/07, Chris Withers <[EMAIL PROTECTED]> wrote:
queryAdapter, for me, is "starting with the supplied object, get me
something that implements the supplied interface and return None
such object can be obtained".
o = IFoo(ob, None)
if os is not None:
Ah, now that's what I was looking for, thanks :-)
Note that for regularity, I assert that the calling the IFoo interface
should allow the follwing use cases, based on the asserition that
utilities are "zero-order" adapters, just as views are "binary order"
I disagree with this assertion for the reason that Marius stated,
which is that adapters are factories and utilities are not. I
certainly understand why you would make that assertion.
Jim Fulton mailto:[EMAIL PROTECTED] Python
CTO (540) 361-1714
Zope Corporation http://www.zope.com http://www.zope.org
Zope3-dev mailing list