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
Nikola Balog
erp5
Commits
29d358c1
Commit
29d358c1
authored
Jul 12, 2017
by
Ayush Tiwari
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sql_catalog: Use isIndexable from SQLCatalog
parent
bc3ec36a
Changes
1
Show 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 @
29d358c1
...
...
@@ -1324,7 +1324,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
klass
=
self
.
__class__
...
...
@@ -1504,7 +1504,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
...
...
@@ -1765,7 +1765,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
:
...
...
@@ -1798,7 +1798,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