diff --git a/bt5/erp5_egov/ExtensionTemplateItem/SetUpEGovInstance.py b/bt5/erp5_egov/ExtensionTemplateItem/SetUpEGovInstance.py index b220ecb2e6b733d0a9b6ca44473006c74ecb017d..760efb51a554bfba8d826f9b7ed85114337e119f 100644 --- a/bt5/erp5_egov/ExtensionTemplateItem/SetUpEGovInstance.py +++ b/bt5/erp5_egov/ExtensionTemplateItem/SetUpEGovInstance.py @@ -133,12 +133,21 @@ def setUpEGovSecurityManager(self): 'Organisation'],) 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): '''call all other set up method to prepare the site for eGOV Instance''' message_list = [] message_list.append(setUpEGovSecurityManager(self)) message_list.append(allowAccessOnPersonAndOrganisation(self)) + message_list.append(publishAllWebPages(self)) message_list.append('') message_list.append('Set Up sequence completed') diff --git a/bt5/erp5_egov/bt/change_log b/bt5/erp5_egov/bt/change_log index 795cba835ff291151ade1c581fce7be00436a440..a81cb945448a0752d468f4991a414595f7e96974 100644 --- a/bt5/erp5_egov/bt/change_log +++ b/bt5/erp5_egov/bt/change_log @@ -1,3 +1,6 @@ +2010-07-03 mayoro +* Add publication of web pages in SetUpEGovInstance + 2010-07-01 mohamadou * update the local role after creating role information diff --git a/bt5/erp5_egov/bt/revision b/bt5/erp5_egov/bt/revision index ed4df3c909416ce15dc1a8653600d7ff03c6e99c..9251196df347629db89caa8098b7b3316365f168 100644 --- a/bt5/erp5_egov/bt/revision +++ b/bt5/erp5_egov/bt/revision @@ -1 +1 @@ -666 \ No newline at end of file +678 \ No newline at end of file