Commit 0f5ad99c authored by Florent Guillaume's avatar Florent Guillaume

tal:on-error does not trap ConflictError anymore.

parent c5e35d7a
......@@ -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).
......
......@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment