[Zpt] CVS: Packages/TAL - TALParser.py:1.12
guido@digicool.com
guido@digicool.com
Fri, 16 Mar 2001 12:24:47 -0500 (EST)
Update of /cvs-repository/Packages/TAL
In directory korak:/tmp/cvs-serv32149
Modified Files:
TALParser.py
Log Message:
No need to check for unknown TAL/METAL attrs here any more
--- Updated File TALParser.py in package Packages/TAL --
--- TALParser.py 2001/03/16 12:57:03 1.11
+++ TALParser.py 2001/03/16 17:24:47 1.12
@@ -143,29 +143,13 @@
for key, value in attrlist:
item = self.fixname(key), value
if key[:nmetal] == metalprefix:
- if key[nmetal:] not in KNOWN_METAL_ATTRIBUTES:
- self.attrerror(key, "METAL")
metaldict[key[nmetal:]] = value
if key[nmetal:] == "define-macro":
item = item + ("macroHack",)
elif key[:ntal] == talprefix:
- if key[ntal:] not in KNOWN_TAL_ATTRIBUTES:
- self.attrerror(key, "TAL")
taldict[key[ntal:]] = value
fixedattrlist.append(item)
return fixedattrlist, taldict, metaldict
-
- def attrerror(self, key, mode):
- if mode == "METAL":
- raise METALError(
- "bad METAL attribute: %s;\nallowed are: %s" %
- (repr(key[len(ZOPE_METAL_NS)+1:]),
- string.join(KNOWN_METAL_ATTRIBUTES)))
- if mode == "TAL":
- raise TALError(
- "bad TAL attribute: %s;\nallowed are: %s" %
- (repr(key[len(ZOPE_TAL_NS)+1:]),
- string.join(KNOWN_TAL_ATTRIBUTES)))
def xmlnsattrs(self):
newlist = []