Commit c0ea9b4d authored by Vincent Pelletier's avatar Vincent Pelletier

Check that reference is valid on the bank account, otherwise raise a TypeError.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@13411 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 494de48b
......@@ -68,7 +68,10 @@
</item>
<item>
<key> <string>_body</string> </key>
<value> <string>return \'bank_account_%s\' % (bank_account.getReference(), )\n
<value> <string>reference = bank_account.getReference()\n
if not same_type(reference, \'\'):\n
raise TypeError, \'Reference is not a string: %s.getReference() == %s\' % (repr(reference), repr(bank_account))\n
return \'bank_account_%s\' % (reference, )\n
</string> </value>
</item>
<item>
......@@ -119,6 +122,10 @@
<tuple>
<string>bank_account</string>
<string>_getattr_</string>
<string>reference</string>
<string>same_type</string>
<string>TypeError</string>
<string>repr</string>
</tuple>
</value>
</item>
......
145
\ No newline at end of file
147
\ 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