Commit b9681c3a authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

fix wrong usages of declarePublic().

parent 25ff6cf0
...@@ -321,8 +321,7 @@ class ConfiguratorTool(BaseTool): ...@@ -321,8 +321,7 @@ class ConfiguratorTool(BaseTool):
business_configuration=business_configuration) business_configuration=business_configuration)
return response return response
security.declarePublic(Permissions.AccessContentsInformation, security.declarePublic('getInstallationStatusReport')
'getInstallationStatusReport')
def getInstallationStatusReport(self, def getInstallationStatusReport(self,
active_process_id=None, REQUEST=None): active_process_id=None, REQUEST=None):
""" Query local ERP5 instance for installation status. """ Query local ERP5 instance for installation status.
......
...@@ -808,8 +808,7 @@ class WizardTool(BaseTool): ...@@ -808,8 +808,7 @@ class WizardTool(BaseTool):
REQUEST.set('portal_status_message', html) REQUEST.set('portal_status_message', html)
return self.view(REQUEST=REQUEST) return self.view(REQUEST=REQUEST)
security.declarePublic(Permissions.AccessContentsInformation, security.declarePublic('getInstallationStatusReportFromClient')
'getInstallationStatusReportFromClient')
def getInstallationStatusReportFromClient(self, def getInstallationStatusReportFromClient(self,
active_process_id=None, REQUEST=None): active_process_id=None, REQUEST=None):
""" Query local ERP5 instance for installation status. """ Query local ERP5 instance for installation status.
...@@ -836,8 +835,7 @@ class WizardTool(BaseTool): ...@@ -836,8 +835,7 @@ class WizardTool(BaseTool):
'text/html; charset=utf-8') 'text/html; charset=utf-8')
return html return html
security.declarePublic(Permissions.AccessContentsInformation, security.declarePublic('getInstallationStatusReportFromServer')
'getInstallationStatusReportFromServer')
def getInstallationStatusReportFromServer(self, active_process_id=None, def getInstallationStatusReportFromServer(self, active_process_id=None,
REQUEST=None): REQUEST=None):
""" Query remote server (usually only once for some installation status report """ """ Query remote server (usually only once for some installation status report """
...@@ -956,8 +954,7 @@ class WizardTool(BaseTool): ...@@ -956,8 +954,7 @@ class WizardTool(BaseTool):
if portal_preferences.getActivePreference() is not None: if portal_preferences.getActivePreference() is not None:
portal_preferences.setPreference(preference_id, value) portal_preferences.setPreference(preference_id, value)
security.declarePublic(Permissions.AccessContentsInformation, security.declarePublic('isSingleSignOnEnabled')
'isSingleSignOnEnabled')
def isSingleSignOnEnabled(self): def isSingleSignOnEnabled(self):
""" """
Check that a ERP5 Remote User manager is Check that a ERP5 Remote User manager is
......
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