Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
Zope
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
Zope
Commits
288b78c3
Commit
288b78c3
authored
Oct 02, 2001
by
Evan Simpson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Raise error on missing TAL and METAL attribute values.
parent
113b82e2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
3 deletions
+10
-3
lib/python/TAL/TALGenerator.py
lib/python/TAL/TALGenerator.py
+10
-3
No files found.
lib/python/TAL/TALGenerator.py
View file @
288b78c3
...
...
@@ -443,12 +443,19 @@ class TALGenerator:
self.emitEndElement(name, isend)
return
for key
in taldict.key
s():
for key
, value in taldict.item
s():
if key not in KNOWN_TAL_ATTRIBUTES:
raise TALError("
bad
TAL
attribute
:
" + `key`, position)
for key in metaldict.keys():
if not (value or key == 'omit-tag'):
raise TALError("
missing
value
for
TAL
attribute
:
" +
`key`, position)
for key, value in metaldict.items():
if key not in KNOWN_METAL_ATTRIBUTES:
raise METALError("
bad
METAL
attribute
:
" + `key`, position)
raise METALError("
bad
METAL
attribute
:
" + `key`,
position)
if not value:
raise TALError("
missing
value
for
METAL
attribute
:
" +
`key`, position)
todo = {}
defineMacro = metaldict.get("
define
-
macro
")
useMacro = metaldict.get("
use
-
macro
")
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment