Commit f4f36c3e authored by Nicolas Delaby's avatar Nicolas Delaby

Call function with good arg id_list_list

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@17142 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 0e8d2b67
...@@ -121,9 +121,8 @@ except (NotImplementedError, AttributeError):\n ...@@ -121,9 +121,8 @@ except (NotImplementedError, AttributeError):\n
id_list = [x for x in folder.objectIds()]\n id_list = [x for x in folder.objectIds()]\n
id_list_list = []\n id_list_list = []\n
for bundle_index in xrange(len(id_list) / BUNDLE_ITEM_COUNT):\n for bundle_index in xrange(len(id_list) / BUNDLE_ITEM_COUNT):\n
Folder_reindexObjectList(id_list=id_list[bundle_index * BUNDLE_ITEM_COUNT:((bundle_index + 1) * BUNDLE_ITEM_COUNT)])\n
id_list_list.append(id_list[bundle_index * BUNDLE_ITEM_COUNT:((bundle_index + 1) * BUNDLE_ITEM_COUNT)])\n id_list_list.append(id_list[bundle_index * BUNDLE_ITEM_COUNT:((bundle_index + 1) * BUNDLE_ITEM_COUNT)])\n
\n Folder_reindexObjectList(id_list_list)\n
remaining_object_id_count = len(id_list) % BUNDLE_ITEM_COUNT\n remaining_object_id_count = len(id_list) % BUNDLE_ITEM_COUNT\n
if remaining_object_id_count > 0:\n if remaining_object_id_count > 0:\n
id_list_list.append(id_list[-remaining_object_id_count:])\n id_list_list.append(id_list[-remaining_object_id_count:])\n
......
545 479
\ No newline at end of file \ No newline at end of file
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