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
organisation = context.organisation_module[orga_id]\n
\n
account_list = [x for x in organisation.objectValues(portal_type=\'Bank Account\') if x.getValidationState() == \'valid\']\n
if len(account_list)!=1:\n
raise ValueError, \'Must not get %d account for the organisation %s\' % (len(account_list), organisation.getTitleOrId())\n
if len(account_list) != 1:\n
raise ValueError(\'Must not get %d account for the organisation %s\' % (len(account_list), organisation.getTitleOrId()))\n
return account_list[0]\n
</string> </value>
</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