Commit d36b9e9f authored by Ayush Tiwari's avatar Ayush Tiwari

erp5_catalog : Remove the monkeypatching for getpath to getPath

getpath function in ZSQLCatalog takes an extra agrument which is
not needed while using getPath in Base.
This process can be counted as a step in the transition of Catalog
inside ERP5. Though ZSQLCatalog is also a part(read: content) of Catalog Tool,
its better to move it side by side with keeping in mind no failure in the
tests of ERP5.
parent 04172fd4
...@@ -939,7 +939,10 @@ class ZCatalog(Folder, Persistent, Implicit): ...@@ -939,7 +939,10 @@ class ZCatalog(Folder, Persistent, Implicit):
return record.path return record.path
else: else:
return None return None
getPath = getpath # 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
# the getPath from the base.
# 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