[Zope-CVS] CVS: Products/CompositePage - macro.py:1.2

Shane Hathaway shane at zope.com
Sat Oct 4 14:20:22 EDT 2003


Update of /cvs-repository/Products/CompositePage
In directory cvs.zope.org:/tmp/cvs-serv25811

Modified Files:
	macro.py 
Log Message:
Added the 'user' TALES namespace.


=== Products/CompositePage/macro.py 1.1 => 1.2 ===
--- Products/CompositePage/macro.py:1.1	Sat Oct  4 14:10:04 2003
+++ Products/CompositePage/macro.py	Sat Oct  4 14:20:22 2003
@@ -21,6 +21,7 @@
 from StringIO import StringIO
 
 from Acquisition import aq_inner, aq_parent
+from AccessControl import getSecurityManager
 from TAL.TALInterpreter import TALInterpreter
 from Products.PageTemplates.Expressions import getEngine, SecureModuleImporter
 
@@ -54,6 +55,7 @@
         'nothing': None,
         'options': {},
         'root': root,
+        'user': getSecurityManager().getUser(),
         'request': getattr(root, 'REQUEST', None),
         'modules': SecureModuleImporter,
         }




More information about the Zope-CVS mailing list