Merge branch '1.9.1' into devel

This commit is contained in:
James 2011-08-31 10:15:00 -04:00
commit c460519a88
5 changed files with 16 additions and 10 deletions

11
CREDITS
View File

@ -1,6 +1,17 @@
=======
CREDITS
=======
Version 1.9.3
-------------
Same as previous version.
Version 1.9.2
-------------
Same as previous version.
Version 1.9.1
-------------
Same as previous version.
Version 1.9.0
-------------

View File

@ -178,9 +178,10 @@ class LibraryController extends Zend_Controller_Action
{
$request = $this->getRequest();
$form = new Application_Form_EditAudioMD();
$file_id = $this->_getParam('id', null);
$file = StoredFile::Recall($file_id);
$form->populate($file->getDbColMetadata());
if ($request->isPost()) {
if ($form->isValid($request->getPost())) {
@ -196,7 +197,6 @@ class LibraryController extends Zend_Controller_Action
}
}
$form->populate($file->getDbColMetadata());
$this->view->form = $form;
}

View File

@ -29,21 +29,15 @@ class Application_Form_EditAudioMD extends Zend_Form
// Add title field
$this->addElement('text', 'track_title', array(
'label' => 'Title:',
'required' => true,
'class' => 'input_text',
'filters' => array('StringTrim'),
'validators' => array(
'NotEmpty',
)
));
// Add artist field
$this->addElement('text', 'artist_name', array(
'label' => 'Artist:',
'required' => true,
'class' => 'input_text',
'filters' => array('StringTrim'),
'validators' => array('NotEmpty')
));
// Add album field

View File

@ -547,7 +547,8 @@ class Airtime190Upgrade{
public static function InstallAirtimePhpServerCode($phpDir)
{
// delete old files
exec("rm -rf ".$phpDir);
$AIRTIME_SRC = realpath(__DIR__.'/../../../airtime_mvc');
echo "* Installing PHP code to ".$phpDir.PHP_EOL;

View File

@ -157,7 +157,7 @@ class ShowRecorder(Thread):
self.upload_file(filepath)
os.remove(filepath)
except Exceptio, e:
except Exception, e:
self.logger.error(e)
else:
self.logger.info("problem recording show")