[CMF-checkins] CVS: CMF/CMFCore - Expression.py:1.3
Chris Withers
chrisw@nipltd.com
Mon, 11 Feb 2002 07:44:27 -0500
Update of /cvs-repository/CMF/CMFCore
In directory cvs.zope.org:/tmp/cvs-serv10593/CMFCore
Modified Files:
Expression.py
Log Message:
Fix for Tracker #463. Killed duplicate code in DCWorkflow/Expression.py
=== CMF/CMFCore/Expression.py 1.2 => 1.3 ===
from Products.PageTemplates.Expressions import getEngine
from Products.PageTemplates.TALES import SafeMapping
-from Products.PageTemplates.PageTemplate import ModuleImporter
-
+from Products.PageTemplates.Expressions import SecureModuleImporter
class Expression (Persistent):
text = ''
@@ -74,7 +73,7 @@
'portal': portal,
'nothing': None,
'request': getattr( object, 'REQUEST', None ),
- 'modules': ModuleImporter,
+ 'modules': SecureModuleImporter,
'member': member,
}
return getEngine().getContext(data)