Andreas Kostyrka writes:
 > ...
 > > __of__ is non-intuitive but it can work.
 > So how do I call it?
 > return myitem.__of__(self)
 > Doesn't make sense, as self is not wrapped and as such DOES not contain
 > any knowledge how it was accessed, ...
Acquisition lookup is implemented by a recursive function:

  While you are right that "self" does not know how it was accessed,
  the recursive lookup function does (on its runtime stack).

  And it will provide the missing context when it builds further
  wrappers on returning from the recursive calls.


Dieter

_______________________________________________
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )

Reply via email to