diff --git a/bt5/erp5_egov/ExtensionTemplateItem/SetUpEGovInstance.py b/bt5/erp5_egov/ExtensionTemplateItem/SetUpEGovInstance.py index 71211d8271a7c6ea21fd427cbc76d2311941ae21..6f1ec9de267f2a26f5227f6bb7580f6c3167a83a 100644 --- a/bt5/erp5_egov/ExtensionTemplateItem/SetUpEGovInstance.py +++ b/bt5/erp5_egov/ExtensionTemplateItem/SetUpEGovInstance.py @@ -158,6 +158,14 @@ def publishAllWebPages(self): web_page.publish() return '- All web pages are published' +def allowAddingEGovTypes(self): + '''Allow adding instance of portal_type EGov Type and Meta EGov Type''' + types_tool = self.getPortalObject().portal_types.getTypeInfo() + allowed_content_type_list = types_tool.getTypeAllowedContentTypeList() + allowed_content_type_list.append('Meta EGov Type') + allowed_content_type_list.append('EGov Type') + types_tool.setTypeAllowedContentTypeList(allowed_content_type_list) + return '- Instance of EGov Type and Meta EGov Type are allowed' def setUpInstance(self): '''call all other set up method to prepare the site for eGOV Instance''' @@ -166,7 +174,7 @@ def setUpInstance(self): message_list.append(allowAccessOnPersonAndOrganisation(self)) message_list.append(allowAccessOnContributionRegistryPortalTypes(self)) message_list.append(publishAllWebPages(self)) - + message_list.append(allowAddingEGovTypes(self)) message_list.append('') message_list.append('Set Up sequence completed') return '\n'.join(message_list) diff --git a/bt5/erp5_egov/bt/change_log b/bt5/erp5_egov/bt/change_log index f0837b47506ba87006009073a80dd5b826bbf0dd..bb26adc9759d83db74fe9875aabb74eaa4a76921 100644 --- a/bt5/erp5_egov/bt/change_log +++ b/bt5/erp5_egov/bt/change_log @@ -1,3 +1,6 @@ +2010-07-12 mayoro +* rome portal_type Types Tool in the bt and allow adding EGov Type and Meta EGov Type instance in SetInstance.py + 2010-07-12 mayoro * remove document_publication_workflow * remove catalog method it's in erp5_egov_mysql_innodb_catalog diff --git a/bt5/erp5_egov/bt/revision b/bt5/erp5_egov/bt/revision index f591613428ca24a74f2c695dda3167bfdad30f89..af718cd15fc86b6ac2f93b35aa137c4497857008 100644 --- a/bt5/erp5_egov/bt/revision +++ b/bt5/erp5_egov/bt/revision @@ -1 +1 @@ -724 \ No newline at end of file +726 \ No newline at end of file