Commit 84ba70f5 authored by Vincent Pelletier's avatar Vincent Pelletier

Follow coding style.

Also, update exception raising style.
parent 364ebb48
...@@ -56,8 +56,8 @@ orga_id = "site_%3s" %(site.getCodification())\n ...@@ -56,8 +56,8 @@ orga_id = "site_%3s" %(site.getCodification())\n
organisation = context.organisation_module[orga_id]\n organisation = context.organisation_module[orga_id]\n
\n \n
account_list = [x for x in organisation.objectValues(portal_type=\'Bank Account\') if x.getValidationState() == \'valid\']\n account_list = [x for x in organisation.objectValues(portal_type=\'Bank Account\') if x.getValidationState() == \'valid\']\n
if len(account_list)!=1:\n if len(account_list) != 1:\n
raise ValueError, \'Must not get %d account for the organisation %s\' % (len(account_list), organisation.getTitleOrId())\n raise ValueError(\'Must not get %d account for the organisation %s\' % (len(account_list), organisation.getTitleOrId()))\n
return account_list[0]\n return account_list[0]\n
</string> </value> </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