Commit f25f55bd authored by Łukasz Nowak's avatar Łukasz Nowak

Do not favour unindexObject

Let activity system to choose what and when shall be executed.

Thanks to this a lots of unindexObject will be grouped.
parent ab2f9bdc
...@@ -80,7 +80,7 @@ if bg:\n ...@@ -80,7 +80,7 @@ if bg:\n
if portal.portal_activities.countMessageWithTag(tag) > 0:\n if portal.portal_activities.countMessageWithTag(tag) > 0:\n
raise TypeError(\'Already running\')\n raise TypeError(\'Already running\')\n
for module in module_list:\n for module in module_list:\n
getattr(module.activate(tag=tag, priority=2), \'03_ERP5Site_deleteVifibAccounting\')(bg=0)\n getattr(module.activate(tag=tag), \'03_ERP5Site_deleteVifibAccounting\')(bg=0)\n
return \'Done.\'\n return \'Done.\'\n
\n \n
deleted = False\n deleted = False\n
...@@ -95,7 +95,7 @@ if context in module_list:\n ...@@ -95,7 +95,7 @@ if context in module_list:\n
script.log(\'Deleted %s from %s in %.3ss, so %.3s/s\' % (len(id_list), context.getId(), e, len(id_list)/e))\n script.log(\'Deleted %s from %s in %.3ss, so %.3s/s\' % (len(id_list), context.getId(), e, len(id_list)/e))\n
\n \n
if deleted:\n if deleted:\n
getattr(context.activate(tag=tag, priority=2), \'03_ERP5Site_deleteVifibAccounting\')(bg=0)\n getattr(context.activate(tag=tag), \'03_ERP5Site_deleteVifibAccounting\')(bg=0)\n
else:\n else:\n
script.log(\'Finished module %s\' % context.getPath())\n script.log(\'Finished module %s\' % context.getPath())\n
......
50 51
\ 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