Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ayush Tiwari
erp5
Commits
788a60be
Commit
788a60be
authored
Jul 29, 2016
by
Ayush Tiwari
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_catalog: Reindex erp5 sql methods in ERP5Site_reindexAll
parent
d43b6bf4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/ERP5Site_reindexAll.py
...emplateItem/portal_skins/erp5_core/ERP5Site_reindexAll.py
+7
-0
No files found.
product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/ERP5Site_reindexAll.py
View file @
788a60be
...
...
@@ -141,6 +141,13 @@ for path, obj in portal.portal_skins.ZopeFind(portal.portal_skins, obj_metatypes
priority
=
object_priority
,
after_tag
=
folder_after_tag
).
immediateReindexObject
(
sql_catalog_id
=
sql_catalog_id
)
# Then we index ERP5 SQL Methods
print
"#### Indexing ERP5 SQL Methods ####"
for
path
,
obj
in
portal
.
portal_skins
.
ZopeFind
(
portal
.
portal_skins
,
obj_metatypes
=
(
'ERP5 SQL Method'
,),
search_sub
=
1
):
obj
.
activate
(
tag
=
folder_tag
,
priority
=
object_priority
,
after_tag
=
folder_after_tag
).
immediateReindexObject
(
sql_catalog_id
=
sql_catalog_id
)
# Then we index everything except inventories
for
folder
in
portal
.
objectValues
((
"ERP5 Folder"
,)):
if
folder
.
getId
().
find
(
'inventory'
)
<
0
:
...
...
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