diff --git a/product/ERP5/Document/ZODBContinuousIncreasingIdGenerator.py b/product/ERP5/Document/ZODBContinuousIncreasingIdGenerator.py index f73eb4fe31c30b38d977e686b57834dbdfdce96b..bec7e1a565f51b09181900d1b5ae2ffe506624b5 100644 --- a/product/ERP5/Document/ZODBContinuousIncreasingIdGenerator.py +++ b/product/ERP5/Document/ZODBContinuousIncreasingIdGenerator.py @@ -146,7 +146,7 @@ class ZODBContinuousIncreasingIdGenerator(IdGenerator): if not isinstance(id_dict, dict): raise TypeError, 'the argument given is not a dictionary' for value in id_dict.values(): - if not isinstance(value, int): + if not isinstance(value, (int, long)): raise TypeError, 'the value given in dictionary is not a integer' self.last_id_dict.update(id_dict)