[Zope-CMF] is this tiny patch to CMFCore/Expression.py okay?
Chris Withers
chris at simplistix.co.uk
Sun Nov 28 22:52:48 EST 2004
Index: Expression.py
===================================================================
--- 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)
It means you can get access to the acquisition context of the current
object in a nicely bound name, handy for doing things like:
string:{context/absolute_url}/some_script_that_twiddles_folder_properties
...in action expressions ;-)
I'd like to apply it to the 1.5 branch and CVS head unless anyone has
any objections?
cheers,
Chris
--
Simplistix - Content Management, Zope & Python Consulting
- http://www.simplistix.co.uk
More information about the Zope-CMF
mailing list