[Zope-Checkins] CVS: Releases/Zope/lib/python/TAL -
TALInterpreter.py:1.78.4.4
Evan Simpson
evan at 4-am.com
Fri Oct 3 14:54:02 EDT 2003
Update of /cvs-repository/Releases/Zope/lib/python/TAL
In directory cvs.zope.org:/tmp/cvs-serv23919/lib/python/TAL
Modified Files:
Tag: Zope-2_7-branch
TALInterpreter.py
Log Message:
Back off a bit on attribute escape changes, so that tal:attribute values
other than 'default' are still fully escaped.
=== Releases/Zope/lib/python/TAL/TALInterpreter.py 1.78.4.3 => 1.78.4.4 ===
--- Releases/Zope/lib/python/TAL/TALInterpreter.py:1.78.4.3 Wed Oct 1 13:14:56 2003
+++ Releases/Zope/lib/python/TAL/TALInterpreter.py Fri Oct 3 14:54:01 2003
@@ -361,6 +361,8 @@
if evalue is None:
ok = 0
value = evalue
+ else:
+ evalue = None
if ok:
if xlat:
@@ -369,7 +371,11 @@
value = translated
if value is None:
value = name
- value = '%s="%s"' % (name, attrEscape(value))
+ elif evalue is self.Default:
+ value = attrEscape(value)
+ else:
+ value = escape(value)
+ value = '%s="%s"' % (name, value)
return ok, name, value
bytecode_handlers["<attrAction>"] = attrAction
More information about the Zope-Checkins
mailing list