[Erp5-report] r35416 fabien - /erp5/trunk/products/ERP5/Document/IdGenerator.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Tue May 18 10:30:34 CEST 2010
Author: fabien
Date: Tue May 18 10:30:32 2010
New Revision: 35416
URL: http://svn.erp5.org?rev=35416&view=rev
Log:
'id_group is not a string' is more a TypeError than an AttributeError.
Reviewed by Jérome and Danièle
Modified:
erp5/trunk/products/ERP5/Document/IdGenerator.py
Modified: erp5/trunk/products/ERP5/Document/IdGenerator.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/Document/IdGenerator.py?rev=35416&r1=35415&r2=35416&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Document/IdGenerator.py [utf8] (original)
+++ erp5/trunk/products/ERP5/Document/IdGenerator.py [utf8] Tue May 18 10:30:32 2010
@@ -91,7 +91,7 @@
"""
# For compatibilty with sql data, must not use id_group as a list
if not isinstance(id_group, str):
- raise AttributeError, 'id_group is not a string'
+ raise TypeError, 'id_group is not a string'
specialise = self.getSpecialiseValue()
if specialise is None:
raise ValueError, "the id generator %s doesn't have specialise value" %\
More information about the Erp5-report
mailing list