Commit e3b02a1a authored by Ayush Tiwari's avatar Ayush Tiwari

Monkey patch some property setters and getters to maintain consistency

parent c426efb9
...@@ -66,6 +66,8 @@ class ERP5Catalog(Folder, Catalog): ...@@ -66,6 +66,8 @@ class ERP5Catalog(Folder, Catalog):
_properties = Catalog._properties _properties = Catalog._properties
_propertyMap = Catalog._propertyMap _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
...@@ -74,8 +76,6 @@ class ERP5Catalog(Folder, Catalog): ...@@ -74,8 +76,6 @@ class ERP5Catalog(Folder, Catalog):
# Declarative Constructors # Declarative Constructors
constructors = (manage_addERP5CatalogForm, manage_addERP5Catalog,) constructors = (manage_addERP5CatalogForm, manage_addERP5Catalog,)
_setPropValue = Base._setPropValue
def __init__(self, id, title='', container=None): def __init__(self, id, title='', container=None):
# Initialize both SQLCatalog as well as Folder # Initialize both SQLCatalog as well as Folder
Catalog.__init__(self, id, title='', container=None) Catalog.__init__(self, id, title='', container=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