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
42e0678a
Commit
42e0678a
authored
Nov 07, 2016
by
Ayush Tiwari
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
multiple_catalog: Test predicate on objects in object_list before catalogging
parent
12340e88
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
product/ZSQLCatalog/ZSQLCatalog.py
product/ZSQLCatalog/ZSQLCatalog.py
+4
-2
No files found.
product/ZSQLCatalog/ZSQLCatalog.py
View file @
42e0678a
...
...
@@ -764,6 +764,7 @@ class ZCatalog(Folder, Persistent, Implicit):
if
archive_enabled
:
default_catalog
=
self
.
getSQLCatalog
()
predicate
=
catalog
.
asPredicate
()
# Construct list of object to catalogged
for
obj
in
object_list
:
if
hot_reindexing
:
...
...
@@ -804,8 +805,9 @@ class ZCatalog(Folder, Persistent, Implicit):
if
goto_current_catalog
:
# wrap object only when sure it will be reindex now
# thus security uid is also reindex
wrap_obj
=
self
.
wrapObject
(
obj
,
sql_catalog_id
=
sql_catalog_id
)
wrapped_object_list
.
append
(
wrap_obj
)
if
predicate
.
test
(
obj
):
wrap_obj
=
self
.
wrapObject
(
obj
,
sql_catalog_id
=
sql_catalog_id
)
wrapped_object_list
.
append
(
wrap_obj
)
# run activity or execute for each archive depending on priority
if
catalog_dict
:
...
...
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