Commit 379fb2de authored by Ayush Tiwari's avatar Ayush Tiwari

erp5_catalog: Use getpath function as monkeypatch to getPath

The commit 7e84b4e8 did break the instance, this can be considered
as the revert.
parent d36b9e9f
...@@ -131,7 +131,7 @@ class ZCatalog(Folder, Persistent, Implicit): ...@@ -131,7 +131,7 @@ class ZCatalog(Folder, Persistent, Implicit):
('Search ZCatalog', ('Search ZCatalog',
['searchResults', '__call__', 'uniqueValuesFor', ['searchResults', '__call__', 'uniqueValuesFor',
'getpath', 'schema', 'names', 'indexes', 'schema', 'names', 'indexes',
'all_meta_types', 'valid_roles', 'resolve_url', 'all_meta_types', 'valid_roles', 'resolve_url',
'getobject', 'getObject', 'getObjectList', 'getCatalogSearchTableIds', 'getobject', 'getObject', 'getObjectList', 'getCatalogSearchTableIds',
'getCatalogSearchResultKeys', 'getFilterableMethodList', ], 'getCatalogSearchResultKeys', 'getFilterableMethodList', ],
...@@ -942,7 +942,7 @@ class ZCatalog(Folder, Persistent, Implicit): ...@@ -942,7 +942,7 @@ class ZCatalog(Folder, Persistent, Implicit):
# Next line commented for now as we don't want this getpath function to be used # Next line commented for now as we don't want this getpath function to be used
# whenever a call is being made to any catalog object, instead we prefer using # whenever a call is being made to any catalog object, instead we prefer using
# the getPath from the base. # the getPath from the base.
# getPath = getpath getPath = getpath
security.declarePrivate('hasPath') security.declarePrivate('hasPath')
def hasPath(self, path, sql_catalog_id=None): def hasPath(self, path, sql_catalog_id=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