[Erp5-report] r36751 seb - /erp5/trunk/products/ERP5/Document/

nobody at svn.erp5.org nobody at svn.erp5.org
Wed Jun 30 16:58:08 CEST 2010


Author: seb
Date: Wed Jun 30 16:58:06 2010
New Revision: 36751

URL: http://svn.erp5.org?rev=36751&view=rev
Log:
when raising error, also give information on the id_group

Modified:
    erp5/trunk/products/ERP5/Document/SQLNonContinuousIncreasingIdGenerator.py

Modified: erp5/trunk/products/ERP5/Document/SQLNonContinuousIncreasingIdGenerator.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/Document/SQLNonContinuousIncreasingIdGenerator.py?rev=36751&r1=36750&r2=36751&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Document/SQLNonContinuousIncreasingIdGenerator.py [utf8] (original)
+++ erp5/trunk/products/ERP5/Document/SQLNonContinuousIncreasingIdGenerator.py [utf8] Wed Jun 30 16:58:06 2010
@@ -98,8 +98,8 @@ class SQLNonContinuousIncreasingIdGenera
       if last_max_id_dict.get(id_group, None) is not None and \
           last_max_id_dict[id_group].value > new_id:
         raise ValueError, 'The last_id %s stored in zodb dictionary is ' \
-            'higher than the new id %s generated' % \
-            (last_max_id_dict[id_group].value, new_id)
+            'higher than the new id %s generated for id_group %s' % \
+            (last_max_id_dict[id_group].value, new_id, id_group)
       # Check the store interval to store the data
       store_interval = self.getStoreInterval()
       if not store_interval:




More information about the Erp5-report mailing list