[Zope-Checkins] SVN: Zope/trunk/lib/python/Products/PageTemplates/ZRPythonExpr.py Collector #2289: restored compatibility with PTProfiler

Andreas Jung andreas at andreas-jung.com
Mon Mar 12 13:23:14 EDT 2007


Log message for revision 73151:
  Collector #2289: restored compatibility with PTProfiler
  

Changed:
  U   Zope/trunk/lib/python/Products/PageTemplates/ZRPythonExpr.py

-=-
Modified: Zope/trunk/lib/python/Products/PageTemplates/ZRPythonExpr.py
===================================================================
--- Zope/trunk/lib/python/Products/PageTemplates/ZRPythonExpr.py	2007-03-12 16:46:01 UTC (rev 73150)
+++ Zope/trunk/lib/python/Products/PageTemplates/ZRPythonExpr.py	2007-03-12 17:23:13 UTC (rev 73151)
@@ -28,7 +28,7 @@
     _globals['__debug__' ] = __debug__
 
     def __init__(self, name, expr, engine):
-        self.text = text = expr.strip().replace('\n', ' ')
+        self.text = self.expr = text = expr.strip().replace('\n', ' ')
 
         # Unicode expression are not handled properly by RestrictedPython
         # We convert the expression to UTF-8 (ajung)



More information about the Zope-Checkins mailing list