Commit e2c363bb authored by Vincent Pelletier's avatar Vincent Pelletier

ERP5Form: Let Redirect exceptions propagate.

parent a8f6c841
...@@ -42,6 +42,7 @@ from urllib import quote ...@@ -42,6 +42,7 @@ from urllib import quote
from Products.ERP5Type.Globals import DTMLFile, get_request from Products.ERP5Type.Globals import DTMLFile, get_request
from AccessControl import Unauthorized, ClassSecurityInfo from AccessControl import Unauthorized, ClassSecurityInfo
from ZODB.POSException import ConflictError from ZODB.POSException import ConflictError
from zExceptions import Redirect
from Acquisition import aq_base from Acquisition import aq_base
from Products.PageTemplates.Expressions import SecureModuleImporter from Products.PageTemplates.Expressions import SecureModuleImporter
...@@ -225,7 +226,7 @@ class TALESValue(StaticValue): ...@@ -225,7 +226,7 @@ class TALESValue(StaticValue):
kw['CONTEXTS'] = kw kw['CONTEXTS'] = kw
try: try:
value = self.tales_expr.__of__(field)(**kw) value = self.tales_expr.__of__(field)(**kw)
except (ConflictError, RuntimeError): except (ConflictError, RuntimeError, Redirect):
raise raise
except: except:
# We add this safety exception to make sure we always get # We add this safety exception to make sure we always get
......
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