Commit f97fb167 authored by Aurel's avatar Aurel

fix init script to return site and not counter

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@11304 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 827cce0e
......@@ -73,8 +73,8 @@ if len(site_list) == 0:\n
context.log("ClassificationSurvey_init", "unabled to determine site")\n
\n
site = site_list[0]\n
\n
context.setSource("%s/caveau/auxiliaire/encaisse_des_billets_a_ventiler_et_a_detruire" %(site,))\n
site = context.Baobab_getVaultSite(site)\n
context.setSource("%s/caveau/auxiliaire/encaisse_des_billets_a_ventiler_et_a_detruire" %(site.getRelativeUrl(),))\n
</string> </value>
</item>
<item>
......
......@@ -73,11 +73,9 @@ if len(site_list) == 0:\n
context.log("MonetaryIsssue_init", "unabled to determine site")\n
\n
site = site_list[0]\n
\n
\n
context.setSource("%s/caveau/serre/encaisse_des_billets_neufs_non_emis" %(site,))\n
\n
context.setDestination("%s/caveau/reserve/encaisse_des_billets_et_monnaies" %(site,))\n
site = context.Baobab_getVaultSite(site)\n
context.setSource("%s/caveau/serre/encaisse_des_billets_neufs_non_emis" %(site.getRelativeUrl(),))\n
context.setDestination("%s/caveau/reserve/encaisse_des_billets_et_monnaies" %(site.getRelativeUrl(),))\n
</string> </value>
</item>
<item>
......
......@@ -74,9 +74,9 @@ if len(site_list) == 0:\n
return\n
\n
site = site_list[0]\n
\n
context.setSource("%s/caveau/auxiliaire/encaisse_des_billets_et_monnaies" %(site,))\n
context.setDestination("%s/caveau/auxiliaire/encaisse_des_billets_a_ventiler_et_a_detruire" %(site,))\n
site = context.Baobab_getVaultSite(site)\n
context.setSource("%s/caveau/auxiliaire/encaisse_des_billets_et_monnaies" %(site.getRelativeUrl(),))\n
context.setDestination("%s/caveau/auxiliaire/encaisse_des_billets_a_ventiler_et_a_detruire" %(site.getRelativeUrl(),))\n
</string> </value>
</item>
<item>
......
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