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
0f5ad99c
Commit
0f5ad99c
authored
Aug 12, 2004
by
Florent Guillaume
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tal:on-error does not trap ConflictError anymore.
parent
c5e35d7a
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
0 deletions
+5
-0
doc/CHANGES.txt
doc/CHANGES.txt
+2
-0
lib/python/TAL/TALInterpreter.py
lib/python/TAL/TALInterpreter.py
+3
-0
No files found.
doc/CHANGES.txt
View file @
0f5ad99c
...
...
@@ -144,6 +144,8 @@ Zope Changes
Bugs fixed
- TAL: tal:on-error does not trap ConflictError anymore.
- OFS.CopySupport: Enforced "Delete objects" permission during
move (CMF Collector #259).
...
...
lib/python/TAL/TALInterpreter.py
View file @
0f5ad99c
...
...
@@ -23,6 +23,7 @@ from cgi import escape
# Do not use cStringIO here! It's not unicode aware. :(
from
StringIO
import
StringIO
from
DocumentTemplate.DT_Util
import
ustr
from
ZODB.POSException
import
ConflictError
from
TALDefs
import
TAL_VERSION
,
TALError
,
METALError
,
attrEscape
from
TALDefs
import
isCurrentVersion
,
getProgramVersion
,
getProgramMode
...
...
@@ -710,6 +711,8 @@ class TALInterpreter:
self
.
_stream_write
=
stream
.
write
try
:
self
.
interpret
(
block
)
except
ConflictError
:
raise
except
:
exc
=
sys
.
exc_info
()[
1
]
self
.
restoreState
(
state
)
...
...
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