Commit 6cc26360 authored by Jérome Perrin's avatar Jérome Perrin

Folder._launchCopyObjectToHBTree: float division

parent d3121add
...@@ -879,7 +879,7 @@ class Folder(FolderMixIn, CopyContainer, ObjectManager, Base, OFSFolder2, CMFBTr ...@@ -879,7 +879,7 @@ class Folder(FolderMixIn, CopyContainer, ObjectManager, Base, OFSFolder2, CMFBTr
HBTreeFolder2Base.__init__(self, self.id) HBTreeFolder2Base.__init__(self, self.id)
# launch activity per bundle to copy/paste to hbtree # launch activity per bundle to copy/paste to hbtree
BUNDLE_COUNT = 100 BUNDLE_COUNT = 100
for x in xrange(len(id_list) / BUNDLE_COUNT): for x in xrange(len(id_list) // BUNDLE_COUNT):
self.activate(activity="SQLQueue", tag=tag)._copyObjectToHBTree( self.activate(activity="SQLQueue", tag=tag)._copyObjectToHBTree(
id_list=id_list[x*BUNDLE_COUNT:(x+1)*BUNDLE_COUNT],) id_list=id_list[x*BUNDLE_COUNT:(x+1)*BUNDLE_COUNT],)
......
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