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
2e2c0a72
Commit
2e2c0a72
authored
Apr 06, 2001
by
Shane Hathaway
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Made runtime exceptions more readable.
parent
d87dd41e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
lib/python/Products/PageTemplates/PageTemplate.py
lib/python/Products/PageTemplates/PageTemplate.py
+2
-2
lib/python/Products/PageTemplates/TALES.py
lib/python/Products/PageTemplates/TALES.py
+2
-2
No files found.
lib/python/Products/PageTemplates/PageTemplate.py
View file @
2e2c0a72
...
...
@@ -87,7 +87,7 @@
HTML- and XML-based template objects using TAL, TALES, and METAL.
"""
__version__
=
'$Revision: 1.
4
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.
5
$'
[
11
:
-
2
]
import
os
,
sys
,
traceback
from
TAL.TALParser
import
TALParser
...
...
@@ -145,7 +145,7 @@ class PageTemplate:
output
=
StringIO
()
c
=
self
.
pt_getContext
()
c
.
update
(
extra_context
)
__traceback_info__
=
c
#
__traceback_info__ = c
TALInterpreter
(
self
.
_v_program
,
self
.
_v_macros
,
getEngine
().
getContext
(
c
),
...
...
lib/python/Products/PageTemplates/TALES.py
View file @
2e2c0a72
...
...
@@ -87,7 +87,7 @@
An implementation of a generic TALES engine
"""
__version__
=
'$Revision: 1.
3
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.
4
$'
[
11
:
-
2
]
import
re
,
sys
from
MultiMapping
import
MultiMapping
...
...
@@ -255,7 +255,7 @@ class Context:
try
:
return
expression
(
self
)
except
:
raise
TALESError
,
(
`expression`
,
sys
.
exc_info
())
raise
TALESError
,
(
`expression`
,
sys
.
exc_info
())
,
sys
.
exc_info
()[
2
]
evaluateValue
=
evaluate
...
...
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