Commit 2204a889 authored by Jérome Perrin's avatar Jérome Perrin

When calling 'eval' on default parameters, catch all exceptions but

ConflictError and RuntimeError.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@5758 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 4b972fc3
......@@ -713,7 +713,9 @@ class ListBoxWidget(Widget.Widget):
# expressions instead
try:
params[k] = eval(v)
except TypeError:
except (ConflictError, RuntimeError):
raise
except:
params[k] = v
# Allow overriding list_method, count_method and stat_method by params
......
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