Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Xiaowu Zhang
erp5
Commits
84ba70f5
Commit
84ba70f5
authored
Nov 09, 2011
by
Vincent Pelletier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Follow coding style.
Also, update exception raising style.
parent
364ebb48
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/Baobab_getAccountForSite.xml
...rtal_skins/erp5_banking_core/Baobab_getAccountForSite.xml
+2
-2
No files found.
bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/Baobab_getAccountForSite.xml
View file @
84ba70f5
...
@@ -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>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment