Commit 58e7e325 authored by Nicolas Delaby's avatar Nicolas Delaby

aq_base is not available in restricted environment

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@25069 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent cd1d5ddc
......@@ -54,12 +54,8 @@
<item>
<key> <string>_body</string> </key>
<value> <string>#Clean some properties\n
from Acquisition import aq_base\n
context_base = aq_base(context)\n
if getattr(context_base, \'source_reference\', None) is not None:\n
delattr(context, \'source_reference\')\n
if getattr(context_base, \'destination_reference\', None) is not None:\n
delattr(context, \'destination_reference\')\n
context.setSourceReference(None)\n
context.setDestinationReference(None)\n
</string> </value>
</item>
<item>
......@@ -96,13 +92,9 @@ if getattr(context_base, \'destination_reference\', None) is not None:\n
<key> <string>co_varnames</string> </key>
<value>
<tuple>
<string>Acquisition</string>
<string>aq_base</string>
<string>_getattr_</string>
<string>context</string>
<string>context_base</string>
<string>getattr</string>
<string>None</string>
<string>delattr</string>
</tuple>
</value>
</item>
......
1056
\ No newline at end of file
1057
\ 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