Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
alecs_myu
erp5
Commits
51c6e422
Commit
51c6e422
authored
Apr 03, 2018
by
Romain Courteaud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[erp5_core] Speed up skin reindexation
Use reindexObject which can group activities.
parent
aefebdbc
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/ERP5Site_reindexAll.py
...emplateItem/portal_skins/erp5_core/ERP5Site_reindexAll.py
+3
-3
No files found.
product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/ERP5Site_reindexAll.py
View file @
51c6e422
...
@@ -136,10 +136,10 @@ for folder in tool_list:
...
@@ -136,10 +136,10 @@ for folder in tool_list:
# Then we index ERP5 Python Scripts and ERP5 Form
# Then we index ERP5 Python Scripts and ERP5 Form
print
"#### Indexing ERP5 Python Scripts, ERP5 Forms and ERP5 Reports ####"
print
"#### Indexing ERP5 Python Scripts, ERP5 Forms and ERP5 Reports ####"
skin_activate_kw
=
{
'tag'
:
folder_tag
,
'priority'
:
object_priority
,
'after_tag'
:
folder_after_tag
}
for
_
,
obj
in
portal
.
portal_skins
.
ZopeFind
(
portal
.
portal_skins
,
obj_metatypes
=
(
'ERP5 Python Script'
,
'ERP5 Form'
,
'ERP5 Report'
),
search_sub
=
1
):
for
_
,
obj
in
portal
.
portal_skins
.
ZopeFind
(
portal
.
portal_skins
,
obj_metatypes
=
(
'ERP5 Python Script'
,
'ERP5 Form'
,
'ERP5 Report'
),
search_sub
=
1
):
obj
.
activate
(
tag
=
folder_tag
,
obj
.
recursiveReindexObject
(
activate_kw
=
skin_activate_kw
,
priority
=
object_priority
,
sql_catalog_id
=
sql_catalog_id
)
after_tag
=
folder_after_tag
).
immediateReindexObject
(
sql_catalog_id
=
sql_catalog_id
)
# Then we index everything except inventories
# Then we index everything except inventories
for
folder
in
portal
.
objectValues
((
"ERP5 Folder"
,)):
for
folder
in
portal
.
objectValues
((
"ERP5 Folder"
,)):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment