moved misplaced docstring

This commit is contained in:
Rudi Grinberg 2012-07-16 15:47:44 -04:00
parent d08b62dd39
commit 1c084a3101
2 changed files with 5 additions and 8 deletions

View file

@ -396,15 +396,13 @@ class ApiController extends Zend_Controller_Action
$this->view->fileid = $file_id;
$this->view->showinstanceid = $show_instance_id;
$showCanceled = false;
$file = Application_Model_StoredFile::Recall($file_id);
$showCanceled = false;
$file = Application_Model_StoredFile::Recall($file_id);
//$show_instance = $this->_getParam('show_instance');
$show_name = null;
try {
$show_inst = new Application_Model_ShowInstance($show_instance_id);
$show_inst->setRecordedFile($file_id);
$show_name = $show_inst->getName();
$show_genre = $show_inst->getGenre();

View file

@ -123,17 +123,16 @@ class AirtimeNotifier(Notifier):
self.logger.error("traceback: %s", traceback.format_exc())
def update_airtime(self, event):
"""
Update airtime with information about files discovered in our
watched directories.
watched directories.
event: a dict() object with the following attributes:
-filepath
-mode
-data
-is_recorded_show
-is_recorded_show
"""
def update_airtime(self, event):
try:
self.logger.info("updating filepath: %s ", event['filepath'])
filepath = event['filepath']