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 @@ ...@@ -54,12 +54,8 @@
<item> <item>
<key> <string>_body</string> </key> <key> <string>_body</string> </key>
<value> <string>#Clean some properties\n <value> <string>#Clean some properties\n
from Acquisition import aq_base\n context.setSourceReference(None)\n
context_base = aq_base(context)\n context.setDestinationReference(None)\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
</string> </value> </string> </value>
</item> </item>
<item> <item>
...@@ -96,13 +92,9 @@ if getattr(context_base, \'destination_reference\', None) is not None:\n ...@@ -96,13 +92,9 @@ if getattr(context_base, \'destination_reference\', None) is not None:\n
<key> <string>co_varnames</string> </key> <key> <string>co_varnames</string> </key>
<value> <value>
<tuple> <tuple>
<string>Acquisition</string> <string>_getattr_</string>
<string>aq_base</string>
<string>context</string> <string>context</string>
<string>context_base</string>
<string>getattr</string>
<string>None</string> <string>None</string>
<string>delattr</string>
</tuple> </tuple>
</value> </value>
</item> </item>
......
1056 1057
\ 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