[Zope-CMF] Re: is this tiny patch to CMFCore/Expression.py okay?

Florent Guillaume fg at nuxeo.com
Mon Nov 29 12:45:43 EST 2004


> >>===================================================================
> >>--- Expression.py       (revision 1038)
> >>+++ Expression.py       (working copy)
> >>@@ -105,6 +105,7 @@
> >>         'modules':      SecureModuleImporter,
> >>         'member':       member,
> >>         'here':         object,
> >>+        'context':      object.aq_parent,
> >>         }
> >>     return getEngine().getContext(data)

As the others said. (-1 on 'context').

Also please use the proper aq_parent(aq_inner(object)), not just
aq_parent(object).

Florent

-- 
Florent Guillaume, Nuxeo (Paris, France)   CTO, Director of R&D
+33 1 40 33 71 59   http://nuxeo.com   fg at nuxeo.com


More information about the Zope-CMF mailing list