Commit da19da73 authored by Ayush Tiwari's avatar Ayush Tiwari

erp5_catalog: Use manage_options obejct from Folder class and initiate both...

erp5_catalog: Use manage_options obejct from Folder class and initiate both ZCatalog and Folder in __init__
parent 5944dd2f
......@@ -42,6 +42,7 @@ from Acquisition import aq_base, aq_inner, aq_parent, ImplicitAcquisitionWrapper
from Products.CMFActivity.ActiveObject import ActiveObject
from Products.CMFActivity.ActivityTool import GroupedMessage
from Products.ERP5Type.TransactionalVariable import getTransactionalVariable
from Products.ERP5Type.Core.Folder import Folder
from Products.ERP5Type.Tool.BaseTool import BaseTool
from AccessControl.PermissionRole import rolesForPermissionOn
......@@ -318,11 +319,7 @@ class CatalogTool (ZCatalog, CMFCoreCatalogTool, BaseTool):
default_count_limit = 1
manage_options = ({ 'label' : 'Overview', 'action' : 'manage_overview' },
{ 'label' : 'View', 'action' : '' },
) + ZCatalog.manage_options
def __init__(self):
ZCatalog.__init__(self, self.getId())
) + Folder.manage_options
# Use reindexObject method from BaseTool class and declare it public
reindexObject = BaseTool.reindexObject
......@@ -338,6 +335,10 @@ class CatalogTool (ZCatalog, CMFCoreCatalogTool, BaseTool):
objectValues = BaseTool.objectValues
def __init__(self):
ZCatalog.__init__(self, self.getId())
BaseTool.__init__(self, self.getId())
# Filter content (ZMI))
def filtered_meta_types(self, user=None):
# Filters the list of available meta types.
......
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