From 58e7e32588d69133eecb7f32ee2728535e00ce68 Mon Sep 17 00:00:00 2001 From: Nicolas Delaby <nicolas@nexedi.com> Date: Fri, 9 Jan 2009 09:36:06 +0000 Subject: [PATCH] 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 --- .../portal_skins/erp5_core/Delivery_afterClone.xml | 14 +++----------- product/ERP5/bootstrap/erp5_core/bt/revision | 2 +- 2 files changed, 4 insertions(+), 12 deletions(-) diff --git a/product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Delivery_afterClone.xml b/product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Delivery_afterClone.xml index 1f361ad7e1..e7e066ff6b 100644 --- a/product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Delivery_afterClone.xml +++ b/product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Delivery_afterClone.xml @@ -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> diff --git a/product/ERP5/bootstrap/erp5_core/bt/revision b/product/ERP5/bootstrap/erp5_core/bt/revision index 12b3ce6528..cb0a134b7b 100644 --- a/product/ERP5/bootstrap/erp5_core/bt/revision +++ b/product/ERP5/bootstrap/erp5_core/bt/revision @@ -1 +1 @@ -1056 \ No newline at end of file +1057 \ No newline at end of file -- 2.30.9