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

fix security declarations.

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