Commit 5c349095 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

fix security declarations.

parent 1b8b06d0
...@@ -114,7 +114,7 @@ class PresencePeriod(Movement, PeriodicityMixin): ...@@ -114,7 +114,7 @@ class PresencePeriod(Movement, PeriodicityMixin):
return result return result
security.declareProtected(Permissions.AccessContentsInformation, security.declareProtected(Permissions.AccessContentsInformation,
'getExceptionValueList') 'getCalendarPeriodExceptionValueList')
def getCalendarPeriodExceptionValueList(self): def getCalendarPeriodExceptionValueList(self):
""" """
Return a list of objects that allows te define exception to the Return a list of objects that allows te define exception to the
......
...@@ -273,7 +273,7 @@ class TaskDistributionTool(BaseTool): ...@@ -273,7 +273,7 @@ class TaskDistributionTool(BaseTool):
test_result = portal.restrictedTraverse(test_result_path) test_result = portal.restrictedTraverse(test_result_path)
return test_result.getSimulationState() == "started" and 1 or 0 return test_result.getSimulationState() == "started" and 1 or 0
security.declareObjectProtected(Permissions.AccessContentsInformation) security.declareProtected(Permissions.AccessContentsInformation, 'getMemcachedDict')
def getMemcachedDict(self): def getMemcachedDict(self):
""" Return a dictionary used for non persistent data related to distribution """ Return a dictionary used for non persistent data related to distribution
""" """
......
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