Commit 1004bfeb authored by Vincent Pelletier's avatar Vincent Pelletier

ZODBContinuousIncreasingIdGenerator: Tolerate longs as well.

parent 6bc6f87e
......@@ -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)
......
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