[Zope-Checkins] CVS: Zope/lib/python/TAL/tests/input - test19.html:1.2.2.2

Godefroid Chapelle gotcha@swing.be
Fri, 25 Jul 2003 12:15:30 -0400


Update of /cvs-repository/Zope/lib/python/TAL/tests/input
In directory cvs.zope.org:/tmp/cvs-serv20543/tests/input

Modified Files:
      Tag: Zope-2_7-branch
	test19.html 
Log Message:
backward compatibility for i18n:attributes

if items are separated with spaces and there are more than two items,
all are treated as attributes plus deprecation warning

if items are separated with spaces and there are two items :

- i18n:attributes="value msg_id;" (with semicolon) will always be treated as <attr> <msg_id>

- i18n:attributes="value title" will be treated as <attr> <attr> as long as title exist as attribute (both as static or in tal:attributes) plus deprecation warning



=== Zope/lib/python/TAL/tests/input/test19.html 1.2.2.1 => 1.2.2.2 ===
--- Zope/lib/python/TAL/tests/input/test19.html:1.2.2.1	Tue Jul 22 10:52:22 2003
+++ Zope/lib/python/TAL/tests/input/test19.html	Fri Jul 25 12:14:56 2003
@@ -7,3 +7,16 @@
 
 <input i18n:attributes=" name message-id;
                          attr input-attr ">
+
+<input name="Delete"
+       i18n:attributes="name message-id;">
+
+<input name="Delete" title="titletext"
+       i18n:attributes="name title">
+
+<input name="Delete" tal:attributes="title string:titletaltext"
+       i18n:attributes="name title">
+
+<input name="Delete" tal:attributes="title string:titletaltext"
+       i18n:attributes="name message-id">
+