Commit 88202a3e authored by Aurel's avatar Aurel

2006-09-21

* fix getBaobabDestination script for money deposit rendering

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@10222 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 4ffd9995
......@@ -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 @@ else:\n
</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 @@ else:\n
<string>_getattr_</string>
<string>context</string>
<string>source</string>
<string>site</string>
<string>_getitem_</string>
</tuple>
</value>
......
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