[ZPT] CVS: Zope27/lib/python/Products/PageTemplates - Expressions.py:1.35.18.7
Fred L. Drake, Jr.
fdrake@acm.org
Tue, 17 Sep 2002 16:58:00 -0400
Update of /cvs-repository/Zope27/lib/python/Products/PageTemplates
In directory cvs.zope.org:/tmp/cvs-serv15859
Modified Files:
Tag: Zope-2_7-development-branch
Expressions.py
Log Message:
Add a comment about an observed performance characteristic. Hopefully
someone will be able to use this to improve this implementation.
=== Zope27/lib/python/Products/PageTemplates/Expressions.py 1.35.18.6 => 1.35.18.7 ===
--- Zope27/lib/python/Products/PageTemplates/Expressions.py:1.35.18.6 Tue Sep 17 16:51:30 2002
+++ Zope27/lib/python/Products/PageTemplates/Expressions.py Tue Sep 17 16:58:00 2002
@@ -342,6 +342,9 @@
if o is not M:
# Check access to the attribute.
if has(object, 'aq_acquire'):
+ # This call accounts for a lot of the performance
+ # code of this restrictedTraverse()
+ # implementation.
object.aq_acquire(
name, acquisition_security_filter, validate)
else: