Commit c8cdae73 authored by Mayoro Diagne's avatar Mayoro Diagne

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

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@37066 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent bbd0f245
...@@ -158,6 +158,14 @@ def publishAllWebPages(self): ...@@ -158,6 +158,14 @@ def publishAllWebPages(self):
web_page.publish() web_page.publish()
return '- All web pages are published' 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): def setUpInstance(self):
'''call all other set up method to prepare the site for eGOV Instance''' '''call all other set up method to prepare the site for eGOV Instance'''
...@@ -166,7 +174,7 @@ def setUpInstance(self): ...@@ -166,7 +174,7 @@ def setUpInstance(self):
message_list.append(allowAccessOnPersonAndOrganisation(self)) message_list.append(allowAccessOnPersonAndOrganisation(self))
message_list.append(allowAccessOnContributionRegistryPortalTypes(self)) message_list.append(allowAccessOnContributionRegistryPortalTypes(self))
message_list.append(publishAllWebPages(self)) message_list.append(publishAllWebPages(self))
message_list.append(allowAddingEGovTypes(self))
message_list.append('') message_list.append('')
message_list.append('Set Up sequence completed') message_list.append('Set Up sequence completed')
return '\n'.join(message_list) return '\n'.join(message_list)
......
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 2010-07-12 mayoro
* remove document_publication_workflow * remove document_publication_workflow
* remove catalog method it's in erp5_egov_mysql_innodb_catalog * remove catalog method it's in erp5_egov_mysql_innodb_catalog
......
724 726
\ No newline at end of file \ No newline at end of file
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