[Erp5-report] r10222 - /erp5/trunk/bt5/erp5_banking_cash/SkinTemplateItem/portal_skins/erp5...

nobody at svn.erp5.org nobody at svn.erp5.org
Thu Sep 21 11:17:49 CEST 2006


Author: aurel
Date: Thu Sep 21 11:17:43 2006
New Revision: 10222

URL: http://svn.erp5.org?rev=10222&view=rev
Log:
2006-09-21
* fix getBaobabDestination script for money deposit rendering

Modified:
    erp5/trunk/bt5/erp5_banking_cash/SkinTemplateItem/portal_skins/erp5_banking_cash/MoneyDepositRendering_getBaobabDestination.xml

Modified: erp5/trunk/bt5/erp5_banking_cash/SkinTemplateItem/portal_skins/erp5_banking_cash/MoneyDepositRendering_getBaobabDestination.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_banking_cash/SkinTemplateItem/portal_skins/erp5_banking_cash/MoneyDepositRendering_getBaobabDestination.xml?rev=10222&r1=10221&r2=10222&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_banking_cash/SkinTemplateItem/portal_skins/erp5_banking_cash/MoneyDepositRendering_getBaobabDestination.xml (original)
+++ erp5/trunk/bt5/erp5_banking_cash/SkinTemplateItem/portal_skins/erp5_banking_cash/MoneyDepositRendering_getBaobabDestination.xml Thu Sep 21 11:17:43 2006
@@ -69,11 +69,12 @@
         <item>
             <key> <string>_body</string> </key>
             <value> <string>source = context.getSource()\n
+site = context.Baobab_getVaultSite(source)\n
 \n
 if \'devise\' in source:\n
-  return  "%s/caveau/auxiliaire/%s" %("/".join(source.split("/")[:-6]), source.split("/")[-2])\n
+  return  "%s/caveau/auxiliaire/%s" %(site.getRelativeUrl(), source.split("/")[-2])\n
 else:\n
-  return  "%s/caveau/auxiliaire/%s" %("/".join(source.split("/")[:-5]), source.split("/")[-2])\n
+  return  "%s/caveau/auxiliaire/%s" %(site.getRelativeUrl(), source.split("/")[-2])\n
 </string> </value>
         </item>
         <item>
@@ -90,7 +91,9 @@
         </item>
         <item>
             <key> <string>_filepath</string> </key>
-            <value> <string>Script (Python):/baobab/portal_skins/erp5_banking_cash/MoneyDepositRendering_getBaobabDestination</string> </value>
+            <value>
+              <none/>
+            </value>
         </item>
         <item>
             <key> <string>_owner</string> </key>
@@ -131,6 +134,7 @@
                             <string>_getattr_</string>
                             <string>context</string>
                             <string>source</string>
+                            <string>site</string>
                             <string>_getitem_</string>
                           </tuple>
                         </value>




More information about the Erp5-report mailing list