Commit 6455cd31 authored by Ayush Tiwari's avatar Ayush Tiwari

bt5_config: Add layer property

parent f2bb4a0e
...@@ -250,12 +250,21 @@ class BusinessManager(Folder): ...@@ -250,12 +250,21 @@ class BusinessManager(Folder):
portal = self.getPortalObject() portal = self.getPortalObject()
pass pass
def edit(self, template_path_list=[], **kw): def _setTitle(self, value):
"""
Override required due to bootstrap
"""
self.title = value
def edit(self, template_path_list=[], layer=1, **kw):
""" """
Explicilty edit the class instance Explicilty edit the class instance
XXX: No need of this class ? as we already have _edit from ERP5Type.Folder XXX: No need of this class ? as we already have _edit from ERP5Type.Folder
""" """
super(BusinessManager, self).edit(template_path_list=template_path_list, **kw) super(BusinessManager, self).edit(
template_path_list=template_path_list,
layer=layer,
**kw)
def getPathItemList(self): def getPathItemList(self):
return self.objectValues() return self.objectValues()
...@@ -318,6 +327,7 @@ class BusinessManager(Folder): ...@@ -318,6 +327,7 @@ class BusinessManager(Folder):
self._setObject(obj.getId(), aq_base(obj)) self._setObject(obj.getId(), aq_base(obj))
obj.isIndexable = ConstantGetter('isIndexable', value=False) obj.isIndexable = ConstantGetter('isIndexable', value=False)
self.setProperty('template_path_list', imported_manager.getProperty('template_path_list')) self.setProperty('template_path_list', imported_manager.getProperty('template_path_list'))
self.setProperty('layer', imported_manager.getProperty('layer'))
def __add__(self, other): def __add__(self, other):
""" """
......
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