[Erp5-report] r38441 kazuhiko - /erp5/trunk/products/ERP5/Document/

nobody at svn.erp5.org nobody at svn.erp5.org
Fri Sep 17 10:56:02 CEST 2010


Author: kazuhiko
Date: Fri Sep 17 10:55:58 2010
New Revision: 38441

URL: http://svn.erp5.org?rev=38441&view=rev
Log:
add a very useful information to show how to fix this problem.

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=38441&r1=38440&r2=38441&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Document/SQLNonContinuousIncreasingIdGenerator.py [utf8] (original)
+++ erp5/trunk/products/ERP5/Document/SQLNonContinuousIncreasingIdGenerator.py [utf8] Fri Sep 17 10:55:58 2010
@@ -98,8 +98,9 @@ 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 for id_group %s' % \
-            (last_max_id_dict[id_group].value, new_id, id_group)
+            'higher than the new id %s generated for id_group %s. ' \
+            'invoke %s/rebuildSqlTable to fix this problem.' % \
+            (last_max_id_dict[id_group].value, new_id, id_group, self.absolute_url())
       # Check the store interval to store the data
       store_interval = self.getStoreInterval()
       if not store_interval:




More information about the Erp5-report mailing list