Commit 9ea5cc2c authored by Vincent Pelletier's avatar Vincent Pelletier

Do a shallow reindexation of person module on first pass.

Person subobjects are not needed after first pass, so don't
waste time indexing them.
parent 9fa4c144
...@@ -64,16 +64,18 @@ person_module=getattr(portal, \'person_module\', None)\n ...@@ -64,16 +64,18 @@ person_module=getattr(portal, \'person_module\', None)\n
higher_priority = 1 + additional_priority\n higher_priority = 1 + additional_priority\n
if person_module is not None :\n if person_module is not None :\n
tag = \'person_stage_1\'\n tag = \'person_stage_1\'\n
person_module.activate(tag=tag,\n person_module.recurseCallMethod(\n
priority=higher_priority,\n method_id=\'immediateReindexObject\',\n
).Folder_reindexAll(\n group_method_id=\'portal_catalog/catalogObjectList\',\n
folder_tag=tag,\n method_kw={\n
object_tag=tag,\n \'sql_catalog_id\': sql_catalog_id,\n
object_priority=higher_priority,\n },\n
sql_catalog_id=sql_catalog_id,\n activate_kw={\n
start_tree=start_tree,\n \'tag\': tag,\n
stop_tree=stop_tree,)\n \'priority\': higher_priority,\n
\n },\n
max_depth=1, # Do not reindex Person\'s subobjects\n
)\n
\n \n
print "#### Indexing translations ####"\n print "#### Indexing translations ####"\n
context.ERP5Site_updateTranslationTable(sql_catalog_id=sql_catalog_id)\n context.ERP5Site_updateTranslationTable(sql_catalog_id=sql_catalog_id)\n
......
41056 41057
\ 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