[Zope3-checkins] CVS: Zope3/lib/python/Zope/DocumentTemplate - DT_Let.py:1.2
Jim Fulton
jim@zope.com
Fri, 18 Oct 2002 08:24:19 -0400
Update of /cvs-repository/Zope3/lib/python/Zope/DocumentTemplate
In directory cvs.zope.org:/tmp/cvs-serv20763
Modified Files:
DT_Let.py
Log Message:
Fixed a bug to make this importable. I have no idea if it runs.
There are no tests for it. :(
=== Zope3/lib/python/Zope/DocumentTemplate/DT_Let.py 1.1 => 1.2 ===
--- Zope3/lib/python/Zope/DocumentTemplate/DT_Let.py:1.1 Tue Jun 25 11:37:17 2002
+++ Zope3/lib/python/Zope/DocumentTemplate/DT_Let.py Fri Oct 18 08:24:19 2002
@@ -41,7 +41,7 @@
$Id$
"""
-from DT_Util import render_blocks, Eval, expr_globals, ParseError
+from DT_Util import render_blocks, Eval, ParseError
from DT_Util import str # Probably needed due to hysterical pickles.
from types import StringType
@@ -63,7 +63,7 @@
# expr shorthand
expr = expr[1:-1]
try:
- args[i] = name, Eval(expr, expr_globals).eval
+ args[i] = name, Eval(expr).eval
except SyntaxError, v:
m,(huh,l,c,src) = v
raise ParseError, (