From e2c363bb4555cb099fad83f19b918a3704c0b126 Mon Sep 17 00:00:00 2001 From: Vincent Pelletier <vincent@nexedi.com> Date: Thu, 10 Apr 2014 16:06:51 +0200 Subject: [PATCH] ERP5Form: Let Redirect exceptions propagate. --- product/ERP5Form/Form.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/product/ERP5Form/Form.py b/product/ERP5Form/Form.py index 46d71bade9..0533e0655a 100644 --- a/product/ERP5Form/Form.py +++ b/product/ERP5Form/Form.py @@ -42,6 +42,7 @@ from urllib import quote from Products.ERP5Type.Globals import DTMLFile, get_request from AccessControl import Unauthorized, ClassSecurityInfo from ZODB.POSException import ConflictError +from zExceptions import Redirect from Acquisition import aq_base from Products.PageTemplates.Expressions import SecureModuleImporter @@ -225,7 +226,7 @@ class TALESValue(StaticValue): kw['CONTEXTS'] = kw try: value = self.tales_expr.__of__(field)(**kw) - except (ConflictError, RuntimeError): + except (ConflictError, RuntimeError, Redirect): raise except: # We add this safety exception to make sure we always get -- 2.30.9