Commit 182ca6c7 authored by Ayush Tiwari's avatar Ayush Tiwari

erp5_catalog: Solve inheritance problem for getObject function

parent 4799d3c4
......@@ -345,7 +345,11 @@ class CatalogTool (BaseTool, ZCatalog, CMFCoreCatalogTool):
, 'manage_overview')
manage_overview = DTMLFile('dtml/explainCatalogTool', globals())
objectValues = BaseTool.objectValues
# IMPORTANT:Solve inheritance conflict, this is necessary as getObject from
# Base gives the current object, which migth be harmful for CatalogTool as
# we use this function here to sometimes get objects to delete which if
# not solved of inheritance conflict might lead to catalog deletion.
getObject = ZCatalog.getObject
def __init__(self):
ZCatalog.__init__(self, self.getId())
......
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