Commit 07c8cb99 authored by Ayush Tiwari's avatar Ayush Tiwari

erp5_catalog: Add isRADContent for ERP5Catalog Class and remove monkeypatching from Catalog class

parent 182ca6c7
...@@ -55,6 +55,8 @@ class ERP5Catalog(Folder, Catalog): ...@@ -55,6 +55,8 @@ class ERP5Catalog(Folder, Catalog):
allowed_types = () allowed_types = ()
#TODO(low priority): Add an icon to display at ERP5 Zope interface #TODO(low priority): Add an icon to display at ERP5 Zope interface
icon = None icon = None
# Activate isRADContent cause we need to generate accessors and default values
isRADContent = 1
# Declarative security # Declarative security
security = ClassSecurityInfo() security = ClassSecurityInfo()
...@@ -65,11 +67,6 @@ class ERP5Catalog(Folder, Catalog): ...@@ -65,11 +67,6 @@ class ERP5Catalog(Folder, Catalog):
'manage_propertiesForm', 'manage_propertiesForm',
) )
#_properties = Catalog._properties
#_propertyMap = Catalog._propertyMap
#_setPropValue = Catalog._setPropValue
#getProperty = Catalog.getProperty
manage_options = ( Folder.manage_options+ manage_options = ( Folder.manage_options+
OFS.History.Historical.manage_options OFS.History.Historical.manage_options
) )
...@@ -102,9 +99,6 @@ class ERP5Catalog(Folder, Catalog): ...@@ -102,9 +99,6 @@ class ERP5Catalog(Folder, Catalog):
meta_types.append(meta_type) meta_types.append(meta_type)
return meta_types return meta_types
_updateProperty = Catalog._updateProperty
_setPropValue = Catalog._setPropValue
InitializeClass(ERP5Catalog) InitializeClass(ERP5Catalog)
class ERP5CatalogError(CatalogError): pass class ERP5CatalogError(CatalogError): pass
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