[Zope-Checkins] CVS: Zope/lib/python/TAL - TALGenerator.py:1.70

Godefroid Chapelle gotcha at swing.be
Fri Sep 19 10:08:41 EDT 2003


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

Modified Files:
	TALGenerator.py 
Log Message:
-tests do not show any DeprecationWarnings anymore

-fix for 1 attribute only



=== Zope/lib/python/TAL/TALGenerator.py 1.69 => 1.70 ===
--- Zope/lib/python/TAL/TALGenerator.py:1.69	Wed Aug 20 17:43:40 2003
+++ Zope/lib/python/TAL/TALGenerator.py	Fri Sep 19 10:08:09 2003
@@ -725,7 +725,6 @@
         replace = todo.get("replace")
         condition = todo.get("condition")
         onError = todo.get("onError")
-        define = todo.get("define")
         repldict = todo.get("repldict", {})
         scope = todo.get("scope")
         optTag = todo.get("optional tag")
@@ -849,7 +848,9 @@
             addAttribute(d, attr, msgid, position, xml)
     else:
         i18nattrlist = i18nattrs.split()
-        if len(i18nattrlist) == 2:
+        if len(i18nattrlist) == 1:
+            addAttribute(d, i18nattrlist[0], None, position, xml)
+        elif len(i18nattrlist) == 2:
             staticattrs = [attr[0] for attr in attrlist if len(attr) == 2]
             if (not i18nattrlist[1] in staticattrs) and (
                 not i18nattrlist[1] in repldict):




More information about the Zope-Checkins mailing list