Commit 1685bf74 authored by Aurel's avatar Aurel

change way to check for main account

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@15158 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent bf3fe3aa
...@@ -67,8 +67,8 @@ ...@@ -67,8 +67,8 @@
<key> <string>_body</string> </key> <key> <string>_body</string> </key>
<value> <string>code = site.getCodification()\n <value> <string>code = site.getCodification()\n
\n \n
if not \'00\' in code:\n if code[-1] != "0":\n
main_code = "%1s00" %code[0]\n main_code = "%s0" %code[:-1]\n
main_site = context.Baobab_getSiteFromCodification(main_code)\n main_site = context.Baobab_getSiteFromCodification(main_code)\n
else:\n else:\n
main_site = site\n main_site = site\n
......
306 308
\ No newline at end of file \ No newline at end of file
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