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 @@ ...@@ -69,11 +69,12 @@
<item> <item>
<key> <string>_body</string> </key> <key> <string>_body</string> </key>
<value> <string>source = context.getSource()\n <value> <string>source = context.getSource()\n
site = context.Baobab_getVaultSite(source)\n
\n \n
if \'devise\' in source:\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 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> </string> </value>
</item> </item>
<item> <item>
...@@ -90,7 +91,9 @@ else:\n ...@@ -90,7 +91,9 @@ else:\n
</item> </item>
<item> <item>
<key> <string>_filepath</string> </key> <key> <string>_filepath</string> </key>
<value> <string>Script (Python):/baobab/portal_skins/erp5_banking_cash/MoneyDepositRendering_getBaobabDestination</string> </value> <value>
<none/>
</value>
</item> </item>
<item> <item>
<key> <string>_owner</string> </key> <key> <string>_owner</string> </key>
...@@ -131,6 +134,7 @@ else:\n ...@@ -131,6 +134,7 @@ else:\n
<string>_getattr_</string> <string>_getattr_</string>
<string>context</string> <string>context</string>
<string>source</string> <string>source</string>
<string>site</string>
<string>_getitem_</string> <string>_getitem_</string>
</tuple> </tuple>
</value> </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