From evan at 4-am.com Wed Oct 1 13:14:58 2003
From: evan at 4-am.com (Evan Simpson)
Date: Sun Aug 10 17:05:19 2008
Subject: [ZPT-CVS] CVS: Releases/Zope/lib/python/TAL/tests -
test_talinterpreter.py:1.6.12.3
Message-ID: <200310011714.h91HEwr10649@cvs.baymountain.com>
Update of /cvs-repository/Releases/Zope/lib/python/TAL/tests
In directory cvs.zope.org:/tmp/cvs-serv10145/lib/python/TAL/tests
Modified Files:
Tag: Zope-2_7-branch
test_talinterpreter.py
Log Message:
Completely fix bug #721 by using attrEscape instead of cgi.escape for
dynamic attribute values as well as static values.
=== Releases/Zope/lib/python/TAL/tests/test_talinterpreter.py 1.6.12.2 => 1.6.12.3 ===
--- Releases/Zope/lib/python/TAL/tests/test_talinterpreter.py:1.6.12.2 Fri Aug 15 10:14:40 2003
+++ Releases/Zope/lib/python/TAL/tests/test_talinterpreter.py Wed Oct 1 13:14:57 2003
@@ -221,7 +221,7 @@
self.compare(INPUT, EXPECTED)
def check_entities(self):
- INPUT = ('" />')
EXPECTED = ('\n')
From evan at 4-am.com Wed Oct 1 13:15:27 2003
From: evan at 4-am.com (Evan Simpson)
Date: Sun Aug 10 17:05:19 2008
Subject: [ZPT-CVS] CVS: Releases/Zope/lib/python/TAL -
TALInterpreter.py:1.78.4.3
Message-ID: <200310011715.h91HFRZ10812@cvs.baymountain.com>
Update of /cvs-repository/Releases/Zope/lib/python/TAL
In directory cvs.zope.org:/tmp/cvs-serv10145/lib/python/TAL
Modified Files:
Tag: Zope-2_7-branch
TALInterpreter.py
Log Message:
Completely fix bug #721 by using attrEscape instead of cgi.escape for
dynamic attribute values as well as static values.
=== Releases/Zope/lib/python/TAL/TALInterpreter.py 1.78.4.2 => 1.78.4.3 ===
--- Releases/Zope/lib/python/TAL/TALInterpreter.py:1.78.4.2 Fri Aug 15 10:14:37 2003
+++ Releases/Zope/lib/python/TAL/TALInterpreter.py Wed Oct 1 13:14:56 2003
@@ -24,7 +24,7 @@
from StringIO import StringIO
from DocumentTemplate.DT_Util import ustr
-from TALDefs import TAL_VERSION, TALError, METALError
+from TALDefs import TAL_VERSION, TALError, METALError, attrEscape
from TALDefs import isCurrentVersion, getProgramVersion, getProgramMode
from TALGenerator import TALGenerator
from TranslationContext import TranslationContext
@@ -336,7 +336,7 @@
if value is None:
value = name
else:
- value = '%s="%s"' % (name, escape(value, 1))
+ value = '%s="%s"' % (name, attrEscape(value))
return 1, name, value
def attrAction_tal(self, item):
@@ -369,7 +369,7 @@
value = translated
if value is None:
value = name
- value = '%s="%s"' % (name, escape(value, 1))
+ value = '%s="%s"' % (name, attrEscape(value))
return ok, name, value
bytecode_handlers[""] = attrAction
From evan at 4-am.com Wed Oct 1 13:27:41 2003
From: evan at 4-am.com (Evan Simpson)
Date: Sun Aug 10 17:05:19 2008
Subject: [ZPT-CVS] CVS: Releases/Zope/lib/python/TAL/tests -
test_talinterpreter.py:1.9
Message-ID: <200310011727.h91HRfu12835@cvs.baymountain.com>
Update of /cvs-repository/Releases/Zope/lib/python/TAL/tests
In directory cvs.zope.org:/tmp/cvs-serv12794/lib/python/TAL/tests
Modified Files:
test_talinterpreter.py
Log Message:
Completely fix bug #721 by using attrEscape instead of cgi.escape for
dynamic attribute values as well as static values.
=== Releases/Zope/lib/python/TAL/tests/test_talinterpreter.py 1.8 => 1.9 ===
--- Releases/Zope/lib/python/TAL/tests/test_talinterpreter.py:1.8 Fri Aug 15 09:58:43 2003
+++ Releases/Zope/lib/python/TAL/tests/test_talinterpreter.py Wed Oct 1 13:27:40 2003
@@ -221,7 +221,7 @@
self.compare(INPUT, EXPECTED)
def check_entities(self):
- INPUT = ('" />')
EXPECTED = ('\n')
From evan at 4-am.com Wed Oct 1 13:28:11 2003
From: evan at 4-am.com (Evan Simpson)
Date: Sun Aug 10 17:05:19 2008
Subject: [ZPT-CVS] CVS: Releases/Zope/lib/python/TAL - TALInterpreter.py:1.81
Message-ID: <200310011728.h91HSBr12995@cvs.baymountain.com>
Update of /cvs-repository/Releases/Zope/lib/python/TAL
In directory cvs.zope.org:/tmp/cvs-serv12794/lib/python/TAL
Modified Files:
TALInterpreter.py
Log Message:
Completely fix bug #721 by using attrEscape instead of cgi.escape for
dynamic attribute values as well as static values.
=== Releases/Zope/lib/python/TAL/TALInterpreter.py 1.80 => 1.81 ===
--- Releases/Zope/lib/python/TAL/TALInterpreter.py:1.80 Fri Aug 15 09:58:38 2003
+++ Releases/Zope/lib/python/TAL/TALInterpreter.py Wed Oct 1 13:27:40 2003
@@ -24,7 +24,7 @@
from StringIO import StringIO
from DocumentTemplate.DT_Util import ustr
-from TALDefs import TAL_VERSION, TALError, METALError
+from TALDefs import TAL_VERSION, TALError, METALError, attrEscape
from TALDefs import isCurrentVersion, getProgramVersion, getProgramMode
from TALGenerator import TALGenerator
from TranslationContext import TranslationContext
@@ -336,7 +336,7 @@
if value is None:
value = name
else:
- value = '%s="%s"' % (name, escape(value, 1))
+ value = '%s="%s"' % (name, attrEscape(value))
return 1, name, value
def attrAction_tal(self, item):
@@ -369,7 +369,7 @@
value = translated
if value is None:
value = name
- value = '%s="%s"' % (name, escape(value, 1))
+ value = '%s="%s"' % (name, attrEscape(value))
return ok, name, value
bytecode_handlers[""] = attrAction
From evan at 4-am.com Fri Oct 3 14:54:02 2003
From: evan at 4-am.com (Evan Simpson)
Date: Sun Aug 10 17:05:19 2008
Subject: [ZPT-CVS] CVS: Releases/Zope/lib/python/TAL -
TALInterpreter.py:1.78.4.4
Message-ID: <200310031854.h93Is2I24141@cvs.baymountain.com>
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
From evan at 4-am.com Fri Oct 3 14:54:48 2003
From: evan at 4-am.com (Evan Simpson)
Date: Sun Aug 10 17:05:19 2008
Subject: [ZPT-CVS] CVS: Releases/Zope/lib/python/TAL - TALInterpreter.py:1.82
Message-ID: <200310031854.h93Ism924267@cvs.baymountain.com>
Update of /cvs-repository/Releases/Zope/lib/python/TAL
In directory cvs.zope.org:/tmp/cvs-serv24248/lib/python/TAL
Modified Files:
TALInterpreter.py
Log Message:
Back off a bit on attribute escaping so that tal:attribute values other than
'default' are still fully escaped.
=== Releases/Zope/lib/python/TAL/TALInterpreter.py 1.81 => 1.82 ===
--- Releases/Zope/lib/python/TAL/TALInterpreter.py:1.81 Wed Oct 1 13:27:40 2003
+++ Releases/Zope/lib/python/TAL/TALInterpreter.py Fri Oct 3 14:54:47 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
From shane at zope.com Sat Oct 4 14:56:59 2003
From: shane at zope.com (Shane Hathaway)
Date: Sun Aug 10 17:05:19 2008
Subject: [ZPT-CVS]
CVS: Releases/Zope/lib/python/Products/PageTemplates/tests/input
- DTML1.html:1.2
Message-ID: <200310041856.h94Iuxt31686@cvs.baymountain.com>
Update of /cvs-repository/Releases/Zope/lib/python/Products/PageTemplates/tests/input
In directory cvs.zope.org:/tmp/cvs-serv31504/tests/input
Modified Files:
DTML1.html
Log Message:
Added "context", a synonym of "here", to page template namespaces.
This unifies the convention in templates, scripts, and Zope 3.
=== Releases/Zope/lib/python/Products/PageTemplates/tests/input/DTML1.html 1.1 => 1.2 ===
--- Releases/Zope/lib/python/Products/PageTemplates/tests/input/DTML1.html:1.1 Fri Mar 23 12:19:20 2001
+++ Releases/Zope/lib/python/Products/PageTemplates/tests/input/DTML1.html Sat Oct 4 14:56:58 2003
@@ -2,18 +2,18 @@
Test of documentation templates
blah
-
+
- The arguments to this test program were:
-
- -
+
-
Argument number 99
is default
- No arguments were given.
+ No arguments were given.
And thats da trooth.