Commit c3e30a7a authored by Jérome Perrin's avatar Jérome Perrin

make indentation consistant



git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@12214 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 0d561ff7
......@@ -142,20 +142,19 @@ class AlarmTool(BaseTool):
security.declareProtected(Permissions.ManageProperties, 'isSubscribed')
def isSubscribed(self):
"""
return True, if we are subscribed to TimerService.
Otherwise return False.
"""
service = getTimerService(self)
if not service:
LOG('AlarmTool', INFO, 'TimerService not available')
return False
path = '/'.join(self.getPhysicalPath())
if path in service.lisSubscriptions():
return True
""" return True, if we are subscribed to TimerService.
Otherwise return False.
"""
service = getTimerService(self)
if not service:
LOG('AlarmTool', INFO, 'TimerService not available')
return False
path = '/'.join(self.getPhysicalPath())
if path in service.lisSubscriptions():
return True
return False
security.declareProtected(Permissions.ManageProperties, 'subscribe')
def subscribe(self):
"""
......
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