Commit 1de013d6 authored by Ayush Tiwari's avatar Ayush Tiwari

erp5_catalog: Monkey-patching of getPath to use getPath from Base

parent e48ac9dc
...@@ -939,6 +939,8 @@ class ZCatalog(Folder, Persistent, Implicit): ...@@ -939,6 +939,8 @@ class ZCatalog(Folder, Persistent, Implicit):
return record.path return record.path
else: else:
return None return None
# Use getPath from Base class while calling getPath on ZSQLCatalog
getPath = Folder.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