[Erp5-report] r13411 - in /erp5/trunk/bt5/erp5_banking_core: SkinTemplateItem/portal_skins/...
nobody at svn.erp5.org
nobody at svn.erp5.org
Wed Mar 14 10:31:39 CET 2007
Author: vincent
Date: Wed Mar 14 10:31:01 2007
New Revision: 13411
URL: http://svn.erp5.org?rev=13411&view=rev
Log:
Check that reference is valid on the bank account, otherwise raise a TypeError.
Modified:
erp5/trunk/bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/BankAccount_getMessageTag.xml
erp5/trunk/bt5/erp5_banking_core/bt/revision
Modified: erp5/trunk/bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/BankAccount_getMessageTag.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/BankAccount_getMessageTag.xml?rev=13411&r1=13410&r2=13411&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/BankAccount_getMessageTag.xml (original)
+++ erp5/trunk/bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/BankAccount_getMessageTag.xml Wed Mar 14 10:31:01 2007
@@ -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>
Modified: erp5/trunk/bt5/erp5_banking_core/bt/revision
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_banking_core/bt/revision?rev=13411&r1=13410&r2=13411&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_banking_core/bt/revision (original)
+++ erp5/trunk/bt5/erp5_banking_core/bt/revision Wed Mar 14 10:31:01 2007
@@ -1,1 +1,1 @@
-145
+147
More information about the Erp5-report
mailing list