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
d57cac71
Commit
d57cac71
authored
Jun 16, 2001
by
Evan Simpson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Only let Redirect and Unauthorized string exceptions propagate.
parent
64fa54d1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
lib/python/Products/PageTemplates/CHANGES.txt
lib/python/Products/PageTemplates/CHANGES.txt
+4
-0
lib/python/Products/PageTemplates/TALES.py
lib/python/Products/PageTemplates/TALES.py
+2
-2
No files found.
lib/python/Products/PageTemplates/CHANGES.txt
View file @
d57cac71
...
@@ -10,5 +10,9 @@ Page Template changes
...
@@ -10,5 +10,9 @@ Page Template changes
- Adopted Zope-style CHANGES.txt and HISTORY.txt
- Adopted Zope-style CHANGES.txt and HISTORY.txt
- Improved execution performance
- Improved execution performance
- nocall: paths are back in.
Bugs Fixed
Bugs Fixed
- TALES expressions let any string exception through, not just
Redirect and Unauthorized.
lib/python/Products/PageTemplates/TALES.py
View file @
d57cac71
...
@@ -87,7 +87,7 @@
...
@@ -87,7 +87,7 @@
An implementation of a generic TALES engine
An implementation of a generic TALES engine
"""
"""
__version__
=
'$Revision: 1.1
6
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.1
7
$'
[
11
:
-
2
]
import
re
,
sys
,
ZTUtils
import
re
,
sys
,
ZTUtils
from
MultiMapping
import
MultiMapping
from
MultiMapping
import
MultiMapping
...
@@ -284,7 +284,7 @@ class Context:
...
@@ -284,7 +284,7 @@ class Context:
except
TALESError
:
except
TALESError
:
raise
raise
except
:
except
:
if
isinstance
(
sys
.
exc_info
()[
0
],
StringType
):
if
sys
.
exc_info
()[
0
]
in
(
'Redirect'
,
'Unauthorized'
):
raise
raise
raise
TALESError
,
(
`expression`
,
sys
.
exc_info
()),
sys
.
exc_info
()[
2
]
raise
TALESError
,
(
`expression`
,
sys
.
exc_info
()),
sys
.
exc_info
()[
2
]
else
:
else
:
...
...
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