Commit 29d358c1 authored by Ayush Tiwari's avatar Ayush Tiwari

sql_catalog: Use isIndexable from SQLCatalog

parent bc3ec36a
...@@ -1324,7 +1324,7 @@ class Catalog(Folder, ...@@ -1324,7 +1324,7 @@ class Catalog(Folder,
Similar problems may happen with relations and acquisition of uid values (ex. order_uid) Similar problems may happen with relations and acquisition of uid values (ex. order_uid)
with the risk of graph loops with the risk of graph loops
""" """
if not self.getPortalObject().isIndexable(): if not self.isIndexable():
return None return None
klass = self.__class__ klass = self.__class__
...@@ -1504,7 +1504,7 @@ class Catalog(Folder, ...@@ -1504,7 +1504,7 @@ class Catalog(Folder,
LOG('ZSLQCatalog.SQLCatalog:catalogObjectList', WARNING, LOG('ZSLQCatalog.SQLCatalog:catalogObjectList', WARNING,
'idxs is ignored in this function and is only provided to be compatible with CMFCatalogAware.reindexObject.') '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 return
# Reminder about optimization: It might be possible to issue just one # Reminder about optimization: It might be possible to issue just one
...@@ -1765,7 +1765,7 @@ class Catalog(Folder, ...@@ -1765,7 +1765,7 @@ class Catalog(Folder,
""" """
Set the path as deleted Set the path as deleted
""" """
if not self.getPortalObject().isIndexable(): if not self.isIndexable():
return None return None
if uid is None and path is not None: if uid is None and path is not None:
...@@ -1798,7 +1798,7 @@ class Catalog(Folder, ...@@ -1798,7 +1798,7 @@ class Catalog(Folder,
XXX Add filter of methods XXX Add filter of methods
""" """
if not self.getPortalObject().isIndexable(): if not self.isIndexable():
return None return None
if uid is None and path is not 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