[Erp5-report] r33595 seb - /erp5/trunk/products/ERP5/interfaces/id_generator.py

nobody at svn.erp5.org nobody at svn.erp5.org
Wed Mar 10 19:15:47 CET 2010


Author: seb
Date: Wed Mar 10 19:15:46 2010
New Revision: 33595

URL: http://svn.erp5.org?rev=33595&view=rev
Log:
add method to export/import last ids

Modified:
    erp5/trunk/products/ERP5/interfaces/id_generator.py

Modified: erp5/trunk/products/ERP5/interfaces/id_generator.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/interfaces/id_generator.py?rev=33595&r1=33594&r2=33595&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/interfaces/id_generator.py [utf8] (original)
+++ erp5/trunk/products/ERP5/interfaces/id_generator.py [utf8] Wed Mar 10 19:15:46 2010
@@ -94,3 +94,28 @@
     in this case a particular error will be raised (to be determined and
     added here)
     """
+
+  def exportGeneratorIdDict():
+    """
+    Export last id values in a dictionnary in the form { group_id : last_id }
+
+    This can be incompatible with some particular generator implementation,
+    in this case a particular error will be raised (to be determined and
+    added here)
+    """
+
+  def importGeneratorIdDict(id_dict):
+    """
+    Import data, this is usefull if we want to replace a generator by
+    another one. It will allows to make the new generator starting from
+    values of the old one
+
+    Parameters :
+
+    id_dict (dict)
+      A dictionnary in the form { group_id : last_id }
+
+    This can be incompatible with some particular generator implementation,
+    in this case a particular error will be raised (to be determined and
+    added here)
+    """




More information about the Erp5-report mailing list