From 73492b23b5dd952425046aee5ade385876595464 Mon Sep 17 00:00:00 2001 From: Sebastien Robin <seb@nexedi.com> Date: Fri, 18 Jun 2004 13:37:32 +0000 Subject: [PATCH] added title on modules git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@1042 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/ERP5/Document/BusinessTemplate.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/product/ERP5/Document/BusinessTemplate.py b/product/ERP5/Document/BusinessTemplate.py index 16bed42f11..35d942b516 100755 --- a/product/ERP5/Document/BusinessTemplate.py +++ b/product/ERP5/Document/BusinessTemplate.py @@ -209,6 +209,7 @@ class ModuleTemplateItem(Implicit): def __init__(self, module, **kw): self.__dict__.update(kw) self.module_id = module.getId() + self.module_title = module.getTitle() self.module_type = module.getPortalType() self.module_permission_list = [] for p in module.ac_inherited_permissions(1): @@ -220,6 +221,7 @@ class ModuleTemplateItem(Implicit): portal = local_configuration.getPortalObject() if self.module_id not in portal.objectIds(): # No renaming mapping for now module = portal.newContent(id=self.module_id, portal_type=self.module_type) + module.setTitle(getattr(self,'module_title','')) for name,role_list in self.module_permission_list: acquire = (type(role_list) == type([])) try: -- 2.30.9