Commit 8edb78ab authored by Sebastien Robin's avatar Sebastien Robin

add method to export/import last ids

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@33595 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent e513fc46
......@@ -94,3 +94,28 @@ class IIdGenerator(Interface):
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)
"""
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment