Commit 33ad6587 authored by Mayoro Diagne's avatar Mayoro Diagne

2010-07-03 mayoro

* Add publication of web pages in SetUpEGovInstance

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@36831 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 8898a955
...@@ -133,12 +133,21 @@ def setUpEGovSecurityManager(self): ...@@ -133,12 +133,21 @@ def setUpEGovSecurityManager(self):
'Organisation'],) 'Organisation'],)
return '- EGOV security set up completed' return '- EGOV security set up completed'
def publishAllWebPages(self):
'''web pages are accessible by anonymous users only if they are published'''
web_page_module = self.getPortalObject().web_page_module
for web_page in web_page_module.contentValues():
if web_page.getValidationState() != 'published':
web_page.publish()
return '- All web pages are published'
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'''
message_list = [] message_list = []
message_list.append(setUpEGovSecurityManager(self)) message_list.append(setUpEGovSecurityManager(self))
message_list.append(allowAccessOnPersonAndOrganisation(self)) message_list.append(allowAccessOnPersonAndOrganisation(self))
message_list.append(publishAllWebPages(self))
message_list.append('') message_list.append('')
message_list.append('Set Up sequence completed') message_list.append('Set Up sequence completed')
......
2010-07-03 mayoro
* Add publication of web pages in SetUpEGovInstance
2010-07-01 mohamadou 2010-07-01 mohamadou
* update the local role after creating role information * update the local role after creating role information
......
666 678
\ 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