Commit 08099e3e authored by Ayush Tiwari's avatar Ayush Tiwari

erp5_catalog: Use filtered_meta_type function from BaseTool

parent c36c19f5
......@@ -337,6 +337,20 @@ class CatalogTool (CopyContainer, ZCatalog, CMFCoreCatalogTool, BaseTool):
, 'manage_schema')
manage_schema = DTMLFile('dtml/manageSchema', globals())
objectValues = BaseTool.objectValues
# Filter content (ZMI))
def filtered_meta_types(self, user=None):
# Filters the list of available meta types.
meta_types = []
for meta_type in self.all_meta_types():
if meta_type['name'] in self.allowed_types:
meta_types.append(meta_type)
return meta_types
allowedContentTypes = BaseTool.allowedContentTypes
getVisibleAllowedContentTypeList = BaseTool.getVisibleAllowedContentTypeList
security.declarePublic('getPreferredSQLCatalogId')
def getPreferredSQLCatalogId(self, 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