[Zope-CMF] is this tiny patch to CMFCore/Expression.py okay?
Dieter Maurer
dieter at handshake.de
Thu Jan 13 14:31:41 EST 2005
Chris Withers wrote at 2005-1-12 13:37 +0000:
> ...
> ...
>> However, I expect that in almost all use cases for your new
>> "parent" you could use "folder" instead. Am I right?
>
>Nope, "folder" is roughly "container", I want something closer to
>"context"...
Then use "object.aq_parent" (for whatever "object" you need
its acquisition context) rather than define a new variable
for "here.aq_parent".
Note that "aq_parent" is the acquisition parent. This is
quite different from a usual parent (unless it happens to be
the container).
--
Dieter
More information about the Zope-CMF
mailing list