From ebd12448eeb0fa318d06da73e22d9c9f36dba594 Mon Sep 17 00:00:00 2001 From: Rudi Grinberg Date: Mon, 16 Jul 2012 15:51:51 -0400 Subject: [PATCH] cc-4105: placed docstrings inside of methods instead of above --- .../airtimefilemonitor/airtimenotifier.py | 30 +++++++++---------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/python_apps/media-monitor/airtimefilemonitor/airtimenotifier.py b/python_apps/media-monitor/airtimefilemonitor/airtimenotifier.py index 2d92e743b..03e389382 100644 --- a/python_apps/media-monitor/airtimefilemonitor/airtimenotifier.py +++ b/python_apps/media-monitor/airtimefilemonitor/airtimenotifier.py @@ -51,13 +51,13 @@ class AirtimeNotifier(Notifier): return True - """ - Messages received from RabbitMQ are handled here. These messages - instruct media-monitor of events such as a new directory being watched, - file metadata has been changed, or any other changes to the config of - media-monitor via the web UI. - """ def handle_message(self, body, message): + """ + Messages received from RabbitMQ are handled here. These messages + instruct media-monitor of events such as a new directory being watched, + file metadata has been changed, or any other changes to the config of + media-monitor via the web UI. + """ # ACK the message to take it off the queue message.ack() @@ -124,15 +124,15 @@ class AirtimeNotifier(Notifier): def update_airtime(self, event): - """ - Update airtime with information about files discovered in our - watched directories. - event: a dict() object with the following attributes: - -filepath - -mode - -data - -is_recorded_show - """ + """ + Update airtime with information about files discovered in our + watched directories. + event: a dict() object with the following attributes: + -filepath + -mode + -data + -is_recorded_show + """ try: self.logger.info("updating filepath: %s ", event['filepath']) filepath = event['filepath']