[CMF-checkins] CVS: Products/CMFCore - Expression.py:1.9.2.1
Jens Vagelpohl
jens at dataflake.org
Fri Sep 3 13:18:53 EDT 2004
Update of /cvs-repository/Products/CMFCore
In directory cvs.zope.org:/tmp/cvs-serv23818/CMFCore
Modified Files:
Tag: CMF-1_5-branch
Expression.py
Log Message:
- ActionInformation: If a path expression ending in an object that
gets called using __render_with_namespace__ (such as DTML objects
and Scripts (Python)) is used a KeyError for "here" would be thrown
inside PageTemplates.ZRPythonExpr.call_with_ns. call_with_ns
expects the namespace to contain "here", which the context coming
from CMFCore.Expressions.createExprContext did not provide. Added
"here" as an alias pointing to the provided "object"
(http://www.zope.org/Collectors/CMF/171)
=== Products/CMFCore/Expression.py 1.9 => 1.9.2.1 ===
--- Products/CMFCore/Expression.py:1.9 Thu Aug 12 11:07:39 2004
+++ Products/CMFCore/Expression.py Fri Sep 3 13:18:18 2004
@@ -104,6 +104,7 @@
'request': getattr( object, 'REQUEST', None ),
'modules': SecureModuleImporter,
'member': member,
+ 'here': object,
}
return getEngine().getContext(data)
More information about the CMF-checkins
mailing list