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 ...@@ -73,8 +73,8 @@ if len(site_list) == 0:\n
context.log("ClassificationSurvey_init", "unabled to determine site")\n context.log("ClassificationSurvey_init", "unabled to determine site")\n
\n \n
site = site_list[0]\n site = site_list[0]\n
\n site = context.Baobab_getVaultSite(site)\n
context.setSource("%s/caveau/auxiliaire/encaisse_des_billets_a_ventiler_et_a_detruire" %(site,))\n context.setSource("%s/caveau/auxiliaire/encaisse_des_billets_a_ventiler_et_a_detruire" %(site.getRelativeUrl(),))\n
</string> </value> </string> </value>
</item> </item>
<item> <item>
......
...@@ -73,11 +73,9 @@ if len(site_list) == 0:\n ...@@ -73,11 +73,9 @@ if len(site_list) == 0:\n
context.log("MonetaryIsssue_init", "unabled to determine site")\n context.log("MonetaryIsssue_init", "unabled to determine site")\n
\n \n
site = site_list[0]\n site = site_list[0]\n
\n site = context.Baobab_getVaultSite(site)\n
\n context.setSource("%s/caveau/serre/encaisse_des_billets_neufs_non_emis" %(site.getRelativeUrl(),))\n
context.setSource("%s/caveau/serre/encaisse_des_billets_neufs_non_emis" %(site,))\n context.setDestination("%s/caveau/reserve/encaisse_des_billets_et_monnaies" %(site.getRelativeUrl(),))\n
\n
context.setDestination("%s/caveau/reserve/encaisse_des_billets_et_monnaies" %(site,))\n
</string> </value> </string> </value>
</item> </item>
<item> <item>
......
...@@ -74,9 +74,9 @@ if len(site_list) == 0:\n ...@@ -74,9 +74,9 @@ if len(site_list) == 0:\n
return\n return\n
\n \n
site = site_list[0]\n site = site_list[0]\n
\n site = context.Baobab_getVaultSite(site)\n
context.setSource("%s/caveau/auxiliaire/encaisse_des_billets_et_monnaies" %(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,))\n context.setDestination("%s/caveau/auxiliaire/encaisse_des_billets_a_ventiler_et_a_detruire" %(site.getRelativeUrl(),))\n
</string> </value> </string> </value>
</item> </item>
<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