diff --git a/product/ERP5/ERP5Site.py b/product/ERP5/ERP5Site.py index 74a6555e34965d468d99ab71fd653e5dc950fba5..f8940ace456ff9f3ff047ee035923994ac2bb5e2 100644 --- a/product/ERP5/ERP5Site.py +++ b/product/ERP5/ERP5Site.py @@ -242,6 +242,16 @@ class ERP5Site(FolderMixIn, CMFSite, CacheCookieMixin): 'type':'string'}, { 'id':'description', 'type':'text'}, + # setProperty cannot be used for this property as it is a property + # pointing to _version_priority_list and valid_property_id doesn't + # accept property name starting with '_'. The property getter always + # returns at least erp5 version. + # + # Also, it must not be a local property as it is stored in ZODB and + # would not be displayed 'Properties' tab with old sites, thus could not + # be edited. + { 'id': 'version_priority_list', + 'type': 'lines' } ) title = '' description = '' @@ -1749,13 +1759,6 @@ class ERP5Generator(PortalGenerator): # Return the fully wrapped object. p = parent.this()._getOb(id) - # setProperty cannot be used for this property as it is a property object - # to _version_priority_list and valid_property_id doesn't accept property - # name starting with '_'. The property getter always returns at least erp5 - # version so it only needs to be added to local properties - p._local_properties = getattr(self, '_local_properties', ()) + \ - ({'id': 'version_priority_list', 'type': 'lines'},) - erp5_sql_deferred_connection_string = erp5_sql_connection_string p._setProperty('erp5_catalog_storage', erp5_catalog_storage, 'string')