Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Laurent S
erp5
Commits
e2c363bb
Commit
e2c363bb
authored
Apr 10, 2014
by
Vincent Pelletier
Browse files
Options
Browse Files
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
...
...
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