Commit f6787a98 authored by Nicolas Delaby's avatar Nicolas Delaby

Nicolas

*Use one activity for all object imported from OOo

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@13910 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent c8a05e18
......@@ -188,12 +188,9 @@ else:\n
\n
if len(new_object_property_dict.keys()) > 0:\n
object_list[property_module_url][property_pt].append(new_object_property_dict)\n
if len(object_list) % 100 == 0 :\n
context.activate(tag="object_OOo_import", priority=1, activity="SQLQueue").ERP5Site_importObjectFromOOoActivity(object_list=object_list)\n
object_list = []\n
\n
# rest of activities\n
context.activate(tag="object_OOo_import", priority=1, activity="SQLQueue").ERP5Site_importObjectFromOOoActivity(object_list=object_list)\n
context.activate(tag="object_OOo_import", priority=1, activity="SQLQueue").ERP5Site_importObjectFromOOoActivity(object_list=object_list)\n
\n
return request.RESPONSE.redirect(context.absolute_url() + \'/view?portal_status_message=OpenOffice+document+importing.\')\n
\n
return context.ERP5Site_importObjectFromOOoFastInput(REQUEST=request)\n
......
41
\ No newline at end of file
47
\ 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