[Erp5-report] r25069 - in /erp5/trunk/products/ERP5/bootstrap/erp5_core: SkinTemplateItem/p...

nobody at svn.erp5.org nobody at svn.erp5.org
Fri Jan 9 10:36:10 CET 2009


Author: nicolas
Date: Fri Jan  9 10:36:06 2009
New Revision: 25069

URL: http://svn.erp5.org?rev=25069&view=rev
Log:
aq_base is not available in restricted environment

Modified:
    erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Delivery_afterClone.xml
    erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/revision

Modified: erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Delivery_afterClone.xml
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Delivery_afterClone.xml?rev=25069&r1=25068&r2=25069&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Delivery_afterClone.xml [utf8] (original)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Delivery_afterClone.xml [utf8] Fri Jan  9 10:36:06 2009
@@ -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 @@
                         <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>

Modified: erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/revision
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/revision?rev=25069&r1=25068&r2=25069&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/revision [utf8] (original)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/revision [utf8] Fri Jan  9 10:36:06 2009
@@ -1,1 +1,1 @@
-1056
+1057




More information about the Erp5-report mailing list