Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Sebastien Robin
erp5
Commits
e2c363bb
Commit
e2c363bb
authored
10 years ago
by
Vincent Pelletier
Browse files
Options
Download
Email Patches
Plain Diff
ERP5Form: Let Redirect exceptions propagate.
parent
a8f6c841
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
product/ERP5Form/Form.py
product/ERP5Form/Form.py
+2
-1
No files found.
product/ERP5Form/Form.py
View file @
e2c363bb
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
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