Commit fdfeca63 authored by Michel Pelletier's avatar Michel Pelletier

Finalized Let tag

parent a4350ddf
......@@ -84,7 +84,7 @@
##############################################################################
''' The Let tag was contributed to Zope by and is copyright, 1999
Philip J. Eby. Permission has been granted to release the Let tag
Phillip J. Eby. Permission has been granted to release the Let tag
under the Zope Public License.
......@@ -112,7 +112,6 @@
as desired.
'''
from DocumentTemplate.DT_String import String
from DocumentTemplate.DT_Util import render_blocks, str, Eval, expr_globals, Eval, ParseError, regex, strip
class Let:
......@@ -176,4 +175,3 @@ def parse_let_params(text,
if text: return apply(parse_let_params,(text,result,tag),parms)
else: return result
String.commands['let']=Let
......@@ -82,7 +82,7 @@
# attributions are listed in the accompanying credits file.
#
##############################################################################
"$Id: DT_String.py,v 1.27 1999/06/24 20:21:20 brian Exp $"
"$Id: DT_String.py,v 1.28 1999/06/28 22:04:32 michel Exp $"
from string import split, strip
import regex, ts_regex
......@@ -136,6 +136,7 @@ class String:
'comment': Comment,
'raise': ('raise', 'DT_Raise','Raise'),
'try': ('try', 'DT_Try','Try'),
'let': ('let', 'DT_Let', 'Let'),
}
def SubTemplate(self, name): return String('', __name__=name)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment