Commit 67686e33 authored by Jérome Perrin's avatar Jérome Perrin

fix bogus security declarations

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@28428 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent a71a3e7d
...@@ -62,7 +62,8 @@ class BuilderTool(BaseTool): ...@@ -62,7 +62,8 @@ class BuilderTool(BaseTool):
security = ClassSecurityInfo() security = ClassSecurityInfo()
security.declareProtected( Permissions.AccessContentsInformation, 'build') security.declareProtected(Permissions.AccessContentsInformation,
'getBuilderValueList')
def getBuilderValueList(self, business_process_list=None, def getBuilderValueList(self, business_process_list=None,
trade_phase_list=None): trade_phase_list=None):
"""Returns sorted builder list with proper condition""" """Returns sorted builder list with proper condition"""
...@@ -86,7 +87,7 @@ class BuilderTool(BaseTool): ...@@ -86,7 +87,7 @@ class BuilderTool(BaseTool):
# FIXME: what kind of sorting to use? # FIXME: what kind of sorting to use?
return sorted(builder_value_list) return sorted(builder_value_list)
security.declareProtected( Permissions.View, 'build') security.declareProtected(Permissions.AccessContentsInformation, 'build')
def build(self, input_movement_list=None, existing_delivery_list=None, def build(self, input_movement_list=None, existing_delivery_list=None,
business_process_list=None, trade_phase_list=None): business_process_list=None, trade_phase_list=None):
"""Informs all builders to be build or invoke building """Informs all builders to be build or invoke building
......
...@@ -50,7 +50,7 @@ class LogMixin: ...@@ -50,7 +50,7 @@ class LogMixin:
""" """
security = ClassSecurityInfo() security = ClassSecurityInfo()
security.declareProtected('getLogFile', Permissions.ManagePortal) security.declareProtected(Permissions.ManagePortal, 'getLogFile')
def getLogFile(self, file_name, account=None): def getLogFile(self, file_name, account=None):
""" """
Returns the raw log file (as they are) Returns the raw log file (as they are)
...@@ -58,7 +58,8 @@ class LogMixin: ...@@ -58,7 +58,8 @@ class LogMixin:
""" """
raise NotImplementedError raise NotImplementedError
security.declareProtected('getLogFileNameList', Permissions.ManagePortal) security.declareProtected(Permissions.ManagePortal,
'getLogFileNameList')
def getLogFileNameList(self, log_name, account=None, def getLogFileNameList(self, log_name, account=None,
domain=None, user_name=None, domain=None, user_name=None,
from_line=None, to_line=None, from_line=None, to_line=None,
...@@ -71,14 +72,14 @@ class LogMixin: ...@@ -71,14 +72,14 @@ class LogMixin:
""" """
raise NotImplementedError raise NotImplementedError
security.declareProtected('getLogNameList', Permissions.ManagePortal) security.declareProtected(Permissions.ManagePortal, 'getLogNameList')
def getLogNameList(self, account=None): def getLogNameList(self, account=None):
""" """
Returns the list of log names. Returns the list of log names.
""" """
raise NotImplementedError raise NotImplementedError
security.declareProtected('parseLogLine', Permissions.ManagePortal) security.declareProtected(Permissions.ManagePortal, 'parseLogLine')
def parseLogLine(self, log_name, log_line ): def parseLogLine(self, log_name, log_line ):
""" """
Parses the line and returns a dict Parses the line and returns a dict
......
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