From c3e30a7afe6b9815493f0a53b8a8bb1209b57568 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9rome=20Perrin?= <jerome@nexedi.com> Date: Mon, 22 Jan 2007 17:35:06 +0000 Subject: [PATCH] make indentation consistant git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@12214 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/ERP5/Tool/AlarmTool.py | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/product/ERP5/Tool/AlarmTool.py b/product/ERP5/Tool/AlarmTool.py index bc81d01951..622203e131 100644 --- a/product/ERP5/Tool/AlarmTool.py +++ b/product/ERP5/Tool/AlarmTool.py @@ -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): """ -- 2.30.9