Commit 10b6a785 authored by Ayush Tiwari's avatar Ayush Tiwari Committed by Ayush Tiwari

sql_catalog: Use isIndexable from SQLCatalog

parent ca7d2bd6
......@@ -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:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment