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
82b0bb86
Commit
82b0bb86
authored
Jun 21, 2001
by
Evan Simpson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Re-fix stray attributes bug, and make a unit test for it.
parent
f9ca9c73
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
2 deletions
+5
-2
lib/python/TAL/CHANGES.txt
lib/python/TAL/CHANGES.txt
+2
-1
lib/python/TAL/TALInterpreter.py
lib/python/TAL/TALInterpreter.py
+1
-1
lib/python/TAL/tests/input/test_metal3.html
lib/python/TAL/tests/input/test_metal3.html
+1
-0
lib/python/TAL/tests/output/test_metal3.html
lib/python/TAL/tests/output/test_metal3.html
+1
-0
No files found.
lib/python/TAL/CHANGES.txt
View file @
82b0bb86
...
@@ -10,4 +10,5 @@ TAL changes
...
@@ -10,4 +10,5 @@ TAL changes
Bugs Fixed
Bugs Fixed
- tal:atributes was creating stray attributes in METAL
expansion, and there was no unit test for this behavior.
lib/python/TAL/TALInterpreter.py
View file @
82b0bb86
...
@@ -329,7 +329,7 @@ class TALInterpreter:
...
@@ -329,7 +329,7 @@ class TALInterpreter:
def
attrAction
(
self
,
item
):
def
attrAction
(
self
,
item
):
name
,
value
,
action
=
item
[:
3
]
name
,
value
,
action
=
item
[:
3
]
if
action
>
1
and
not
self
.
showtal
:
if
action
==
1
or
(
action
>
1
and
not
self
.
showtal
)
:
return
0
,
name
,
value
return
0
,
name
,
value
ok
=
1
ok
=
1
if
action
==
2
and
self
.
metal
:
if
action
==
2
and
self
.
metal
:
...
...
lib/python/TAL/tests/input/test_metal3.html
0 → 100644
View file @
82b0bb86
<span
tal:attributes=
"class string:foo"
>
Should not get attr in metal
</span>
lib/python/TAL/tests/output/test_metal3.html
0 → 100644
View file @
82b0bb86
<span
tal:attributes=
"class string:foo"
>
Should not get attr in metal
</span>
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