From b9681c3aa7052283b6f8ea95845b87d2b6e0e2dc Mon Sep 17 00:00:00 2001
From: Kazuhiko Shiozaki <kazuhiko@nexedi.com>
Date: Thu, 10 Oct 2013 11:32:49 +0200
Subject: [PATCH] fix wrong usages of declarePublic().

---
 product/ERP5Configurator/Tool/ConfiguratorTool.py | 3 +--
 product/ERP5Wizard/Tool/WizardTool.py             | 9 +++------
 2 files changed, 4 insertions(+), 8 deletions(-)

diff --git a/product/ERP5Configurator/Tool/ConfiguratorTool.py b/product/ERP5Configurator/Tool/ConfiguratorTool.py
index a8ff1a7af7..55ecb41075 100644
--- a/product/ERP5Configurator/Tool/ConfiguratorTool.py
+++ b/product/ERP5Configurator/Tool/ConfiguratorTool.py
@@ -321,8 +321,7 @@ class ConfiguratorTool(BaseTool):
         business_configuration=business_configuration)
     return response
 
-  security.declarePublic(Permissions.AccessContentsInformation,
-                         'getInstallationStatusReport')
+  security.declarePublic('getInstallationStatusReport')
   def getInstallationStatusReport(self,
                           active_process_id=None, REQUEST=None):
     """ Query local ERP5 instance for installation status.
diff --git a/product/ERP5Wizard/Tool/WizardTool.py b/product/ERP5Wizard/Tool/WizardTool.py
index 1c31be06f3..efa16f62ef 100644
--- a/product/ERP5Wizard/Tool/WizardTool.py
+++ b/product/ERP5Wizard/Tool/WizardTool.py
@@ -808,8 +808,7 @@ class WizardTool(BaseTool):
       REQUEST.set('portal_status_message', html)
       return self.view(REQUEST=REQUEST)
 
-  security.declarePublic(Permissions.AccessContentsInformation,
-                         'getInstallationStatusReportFromClient')
+  security.declarePublic('getInstallationStatusReportFromClient')
   def getInstallationStatusReportFromClient(self,
                           active_process_id=None, REQUEST=None):
     """ Query local ERP5 instance for installation status.
@@ -836,8 +835,7 @@ class WizardTool(BaseTool):
         'text/html; charset=utf-8')
     return html
 
-  security.declarePublic(Permissions.AccessContentsInformation,
-      'getInstallationStatusReportFromServer')
+  security.declarePublic('getInstallationStatusReportFromServer')
   def getInstallationStatusReportFromServer(self, active_process_id=None,
       REQUEST=None):
     """ Query remote server (usually only once for some installation status report """
@@ -956,8 +954,7 @@ class WizardTool(BaseTool):
     if portal_preferences.getActivePreference() is not None:
       portal_preferences.setPreference(preference_id, value)
 
-  security.declarePublic(Permissions.AccessContentsInformation,
-                         'isSingleSignOnEnabled')  
+  security.declarePublic('isSingleSignOnEnabled')
   def isSingleSignOnEnabled(self):
     """
       Check that a ERP5 Remote User manager is 
-- 
2.30.9