Commit 59e90638 authored by Jérome Perrin's avatar Jérome Perrin

prevent "RuntimeError function attributes are not accessible from restricted...

prevent "RuntimeError function attributes are not accessible from restricted code" that happens on Zope 2.7

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@18096 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 25d62b84
...@@ -81,7 +81,7 @@ def addDialogIfNeeded(url):\n ...@@ -81,7 +81,7 @@ def addDialogIfNeeded(url):\n
action = parts[-1]\n action = parts[-1]\n
action_id = action.split(\'?\')[0]\n action_id = action.split(\'?\')[0]\n
form = getattr(context, action_id, None)\n form = getattr(context, action_id, None)\n
if form is not None and getattr(form, \'pt\', None) != \'form_dialog\':\n if not (hasattr(form, \'pt\') and form.pt == \'form_dialog\'):\n
url = \'%s/Base_viewIntermediatePrintDialog?dialog_action_url=%s\' % (\n url = \'%s/Base_viewIntermediatePrintDialog?dialog_action_url=%s\' % (\n
context.absolute_url(), url_quote(\'%s/%s\' % (absolute_url, action)))\n context.absolute_url(), url_quote(\'%s/%s\' % (absolute_url, action)))\n
return url\n return url\n
......
456 457
\ No newline at end of file \ No newline at end of file
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