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
10b6a785
Commit
10b6a785
authored
Jul 12, 2017
by
Ayush Tiwari
Committed by
Ayush Tiwari
Nov 09, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sql_catalog: Use isIndexable from SQLCatalog
parent
ca7d2bd6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
product/ZSQLCatalog/SQLCatalog.py
product/ZSQLCatalog/SQLCatalog.py
+4
-4
No files found.
product/ZSQLCatalog/SQLCatalog.py
View file @
10b6a785
...
...
@@ -1258,7 +1258,7 @@ class Catalog(Folder,
Similar problems may happen with relations and acquisition of uid values (ex. order_uid)
with the risk of graph loops
"""
if
not
self
.
getPortalObject
().
isIndexable
():
if
not
self
.
isIndexable
():
return
None
with
global_reserved_uid_lock
:
...
...
@@ -1430,7 +1430,7 @@ class Catalog(Folder,
LOG
(
'ZSLQCatalog.SQLCatalog:catalogObjectList'
,
WARNING
,
'idxs is ignored in this function and is only provided to be compatible with CMFCatalogAware.reindexObject.'
)
if
not
self
.
getPortalObject
().
isIndexable
():
if
not
self
.
isIndexable
():
return
# Reminder about optimization: It might be possible to issue just one
...
...
@@ -1684,7 +1684,7 @@ class Catalog(Folder,
"""
Set the path as deleted
"""
if
not
self
.
getPortalObject
().
isIndexable
():
if
not
self
.
isIndexable
():
return
None
if
uid
is
None
and
path
is
not
None
:
...
...
@@ -1717,7 +1717,7 @@ class Catalog(Folder,
XXX Add filter of methods
"""
if
not
self
.
getPortalObject
().
isIndexable
():
if
not
self
.
isIndexable
():
return
None
if
uid
is
None
and
path
is
not
None
:
...
...
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