[Zpt] CVS: Packages/TAL - TALGenerator.py:1.12
guido@digicool.com
guido@digicool.com
Fri, 16 Mar 2001 12:21:13 -0500 (EST)
Update of /cvs-repository/Packages/TAL
In directory korak:/tmp/cvs-serv32007
Modified Files:
TALGenerator.py
Log Message:
Check for unknown TAL and METAL attributes here.
--- Updated File TALGenerator.py in package Packages/TAL --
--- TALGenerator.py 2001/03/16 17:06:26 1.11
+++ TALGenerator.py 2001/03/16 17:21:12 1.12
@@ -297,6 +297,12 @@
return newlist
def emitStartElement(self, name, attrlist, taldict, metaldict):
+ for key in taldict.keys():
+ if key not in KNOWN_TAL_ATTRIBUTES:
+ raise TALError("bad TAL attribute: " + `key`)
+ for key in metaldict.keys():
+ if key not in KNOWN_METAL_ATTRIBUTES:
+ raise TALError("bad METAL attribute: " + `key`)
todo = {}
defineMacro = metaldict.get("define-macro")
useMacro = metaldict.get("use-macro")