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 ...@@ -144,6 +144,8 @@ Zope Changes
Bugs fixed Bugs fixed
- TAL: tal:on-error does not trap ConflictError anymore.
- OFS.CopySupport: Enforced "Delete objects" permission during - OFS.CopySupport: Enforced "Delete objects" permission during
move (CMF Collector #259). move (CMF Collector #259).
......
...@@ -23,6 +23,7 @@ from cgi import escape ...@@ -23,6 +23,7 @@ from cgi import escape
# Do not use cStringIO here! It's not unicode aware. :( # Do not use cStringIO here! It's not unicode aware. :(
from StringIO import StringIO from StringIO import StringIO
from DocumentTemplate.DT_Util import ustr from DocumentTemplate.DT_Util import ustr
from ZODB.POSException import ConflictError
from TALDefs import TAL_VERSION, TALError, METALError, attrEscape from TALDefs import TAL_VERSION, TALError, METALError, attrEscape
from TALDefs import isCurrentVersion, getProgramVersion, getProgramMode from TALDefs import isCurrentVersion, getProgramVersion, getProgramMode
...@@ -710,6 +711,8 @@ class TALInterpreter: ...@@ -710,6 +711,8 @@ class TALInterpreter:
self._stream_write = stream.write self._stream_write = stream.write
try: try:
self.interpret(block) self.interpret(block)
except ConflictError:
raise
except: except:
exc = sys.exc_info()[1] exc = sys.exc_info()[1]
self.restoreState(state) 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