Commit e3392cd7 authored by Grégory Wisniewski's avatar Grégory Wisniewski

Fix bug introduced with #1058, duplicate OIDs were generated.


git-svn-id: https://svn.erp5.org/repos/neo/branches/prototype3@1062 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent 104b3ac3
......@@ -713,7 +713,7 @@ class Application(object):
def getNewOIDList(self, num_oids):
if self.loid is None:
raise RuntimeError, 'I do not know the last OID'
oid = unpack('!Q', self.loid)[0]
oid = unpack('!Q', self.loid)[0] + 1
oid_list = [pack('!Q', oid + i) for i in xrange(num_oids)]
self.loid = oid_list[-1]
self.broadcastLastOID(self.loid)
......
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