Merge branch 'devel' of dev.sourcefabric.org:airtime into devel
This commit is contained in:
commit
a317d3904b
|
@ -7,7 +7,7 @@ class Application_Form_AddShowRR extends Zend_Form_SubForm
|
||||||
{
|
{
|
||||||
// Add record element
|
// Add record element
|
||||||
$this->addElement('checkbox', 'add_show_record', array(
|
$this->addElement('checkbox', 'add_show_record', array(
|
||||||
'label' => 'Record?',
|
'label' => 'Record from Line In?',
|
||||||
'required' => false,
|
'required' => false,
|
||||||
));
|
));
|
||||||
|
|
||||||
|
|
|
@ -11,7 +11,7 @@ class Application_Form_WatchedDirPreferences extends Zend_Form_SubForm
|
||||||
|
|
||||||
$this->addElement('text', 'storageFolder', array(
|
$this->addElement('text', 'storageFolder', array(
|
||||||
'class' => 'input_text',
|
'class' => 'input_text',
|
||||||
'label' => 'Airtime\'s Storage Folder:',
|
'label' => 'Import Folder:',
|
||||||
'required' => false,
|
'required' => false,
|
||||||
'filters' => array('StringTrim'),
|
'filters' => array('StringTrim'),
|
||||||
'value' => '',
|
'value' => '',
|
||||||
|
@ -22,7 +22,7 @@ class Application_Form_WatchedDirPreferences extends Zend_Form_SubForm
|
||||||
|
|
||||||
$this->addElement('text', 'watchedFolder', array(
|
$this->addElement('text', 'watchedFolder', array(
|
||||||
'class' => 'input_text',
|
'class' => 'input_text',
|
||||||
'label' => 'Choose a Watched Folder:',
|
'label' => 'Watched Folders:',
|
||||||
'required' => false,
|
'required' => false,
|
||||||
'filters' => array('StringTrim'),
|
'filters' => array('StringTrim'),
|
||||||
'value' => '',
|
'value' => '',
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
</ul>
|
</ul>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</dd>
|
</dd>
|
||||||
<dd class="block-display selected-item"><strong>Current Storage Folder:</strong><?php $stor = Application_Model_MusicDir::getStorDir(); echo $stor->getDirectory(); ?></dd>
|
<dd class="block-display selected-item"><strong>Current Import Folder:</strong><?php $stor = Application_Model_MusicDir::getStorDir(); echo $stor->getDirectory(); ?></dd>
|
||||||
|
|
||||||
<dt id="watchedFolder-label" class="block-display">
|
<dt id="watchedFolder-label" class="block-display">
|
||||||
<label class="required" for="watchedFolder"><?php echo $this->element->getElement('watchedFolder')->getLabel() ?></label>
|
<label class="required" for="watchedFolder"><?php echo $this->element->getElement('watchedFolder')->getLabel() ?></label>
|
||||||
|
|
|
@ -30,6 +30,9 @@
|
||||||
<li class="time-zone"><span id="time-zone"></span></li>
|
<li class="time-zone"><span id="time-zone"></span></li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="listen-control-block">
|
||||||
|
<a class="" href="#"><span>Listen</span></a>
|
||||||
|
</div>
|
||||||
<?php if($this->is_trial){?>
|
<?php if($this->is_trial){?>
|
||||||
<div class="trial-info-block">
|
<div class="trial-info-block">
|
||||||
<ul>
|
<ul>
|
||||||
|
|
|
@ -1,32 +0,0 @@
|
||||||
@echo off
|
|
||||||
|
|
||||||
rem *********************************************************************
|
|
||||||
rem ** The Propel generator convenience script for Windows based systems
|
|
||||||
rem ** $Id$
|
|
||||||
rem *********************************************************************
|
|
||||||
|
|
||||||
rem This script will do the following:
|
|
||||||
rem - check for PHING_COMMAND env, if found, use it.
|
|
||||||
rem - if not found detect php, if found use it, otherwise err and terminate
|
|
||||||
rem - check for PROPEL_GEN_HOME env, if found use it
|
|
||||||
rem - if not found error and leave
|
|
||||||
|
|
||||||
if "%OS%"=="Windows_NT" @setlocal
|
|
||||||
|
|
||||||
rem %~dp0 is expanded pathname of the current script under NT
|
|
||||||
set DEFAULT_PROPEL_GEN_HOME=%~dp0..
|
|
||||||
|
|
||||||
if "%PROPEL_GEN_HOME%" == "" set PROPEL_GEN_HOME=%DEFAULT_PROPEL_GEN_HOME%
|
|
||||||
set DEFAULT_PROPEL_GEN_HOME=
|
|
||||||
|
|
||||||
if "%PHING_COMMAND%" == "" set PHING_COMMAND=phing.bat
|
|
||||||
|
|
||||||
set nbArgs=0
|
|
||||||
for %%x in (%*) do Set /A nbArgs+=1
|
|
||||||
if %nbArgs% leq 1 (
|
|
||||||
%PHING_COMMAND% -f "%PROPEL_GEN_HOME%\build.xml" -Dusing.propel-gen=true -Dproject.dir="%CD%" %*
|
|
||||||
) else (
|
|
||||||
%PHING_COMMAND% -f "%PROPEL_GEN_HOME%\build.xml" -Dusing.propel-gen=true -Dproject.dir=%*
|
|
||||||
)
|
|
||||||
|
|
||||||
if "%OS%"=="Windows_NT" @endlocal
|
|
|
@ -260,7 +260,7 @@ function init() {
|
||||||
|
|
||||||
setupQtip();
|
setupQtip();
|
||||||
|
|
||||||
$('#on-air-info').click(function() {
|
$('.listen-control-block').click(function() {
|
||||||
if (stream_window == null || stream_window.closed)
|
if (stream_window == null || stream_window.closed)
|
||||||
stream_window=window.open(baseUrl+"Dashboard/stream-player", 'name', 'width=400,height=216');
|
stream_window=window.open(baseUrl+"Dashboard/stream-player", 'name', 'width=400,height=216');
|
||||||
stream_window.focus();
|
stream_window.focus();
|
||||||
|
|
|
@ -20,12 +20,9 @@ def test():
|
||||||
print x.succeeded
|
print x.succeeded
|
||||||
print x.return_code
|
print x.return_code
|
||||||
|
|
||||||
def download_if_needed(vdi_dir, vdi_snapshot_dir, xml_dir, vm_name, vm_vdi_file, vm_xml_file):
|
def download_if_needed(vdi_dir, xml_dir, vm_name, vm_vdi_file, vm_xml_file):
|
||||||
if not os.path.exists(vdi_dir):
|
if not os.path.exists(vdi_dir):
|
||||||
os.makedirs(vdi_dir)
|
os.makedirs(vdi_dir)
|
||||||
|
|
||||||
if not os.path.exists(vdi_snapshot_dir):
|
|
||||||
os.makedirs(vdi_snapshot_dir)
|
|
||||||
|
|
||||||
if os.path.exists(os.path.join(vdi_dir, vm_vdi_file)):
|
if os.path.exists(os.path.join(vdi_dir, vm_vdi_file)):
|
||||||
print "File %s already exists. No need to re-download" % os.path.join(vdi_dir, vm_vdi_file)
|
print "File %s already exists. No need to re-download" % os.path.join(vdi_dir, vm_vdi_file)
|
||||||
|
@ -34,14 +31,7 @@ def download_if_needed(vdi_dir, vdi_snapshot_dir, xml_dir, vm_name, vm_vdi_file,
|
||||||
print "File %s not found. Downloading" % vm_vdi_file
|
print "File %s not found. Downloading" % vm_vdi_file
|
||||||
local("wget %s/%s/%s -O %s"%(env.vm_download_url, vm_name, vm_vdi_file, os.path.join(vdi_dir, vm_vdi_file)))
|
local("wget %s/%s/%s -O %s"%(env.vm_download_url, vm_name, vm_vdi_file, os.path.join(vdi_dir, vm_vdi_file)))
|
||||||
downloaded = True
|
downloaded = True
|
||||||
|
|
||||||
snapshot_file = "{fd4f1d58-2737-49dd-8cd3-aef484d93a9d}.vdi"
|
|
||||||
if os.path.exists(os.path.join(vdi_snapshot_dir, snapshot_file)):
|
|
||||||
print "File %s already exists. No need to re-download" % os.path.join(vdi_snapshot_dir, snapshot_file)
|
|
||||||
else:
|
|
||||||
print "File %s not found. Downloading" % snapshot_file
|
|
||||||
local("wget %s/%s/Snapshots/%s -O %s"%(env.vm_download_url, vm_name, snapshot_file, os.path.join(vdi_snapshot_dir, snapshot_file)))
|
|
||||||
|
|
||||||
if os.path.exists(os.path.join(xml_dir, vm_xml_file)):
|
if os.path.exists(os.path.join(xml_dir, vm_xml_file)):
|
||||||
print "File %s already exists. No need to re-download" % os.path.join(xml_dir, vm_xml_file)
|
print "File %s already exists. No need to re-download" % os.path.join(xml_dir, vm_xml_file)
|
||||||
else:
|
else:
|
||||||
|
@ -59,7 +49,7 @@ def create_fresh_os(os_version, os_arch):
|
||||||
vdi_snapshot_dir = os.path.expanduser('~/tmp/vms/%s/Snapshots'%vm_name)
|
vdi_snapshot_dir = os.path.expanduser('~/tmp/vms/%s/Snapshots'%vm_name)
|
||||||
xml_dir = os.path.expanduser('~/.VirtualBox')
|
xml_dir = os.path.expanduser('~/.VirtualBox')
|
||||||
|
|
||||||
downloaded = download_if_needed(vdi_dir, vdi_snapshot_dir, xml_dir, vm_name, vm_vdi_file, vm_xml_file)
|
downloaded = download_if_needed(vdi_dir, xml_dir, vm_name, vm_vdi_file, vm_xml_file)
|
||||||
|
|
||||||
if downloaded:
|
if downloaded:
|
||||||
local("VBoxManage registervm %s"%os.path.join(xml_dir, vm_xml_file), capture=True)
|
local("VBoxManage registervm %s"%os.path.join(xml_dir, vm_xml_file), capture=True)
|
||||||
|
@ -81,9 +71,6 @@ def create_fresh_os(os_version, os_arch):
|
||||||
print "Address found %s"%ip_addr
|
print "Address found %s"%ip_addr
|
||||||
env.hosts.append(ip_addr)
|
env.hosts.append(ip_addr)
|
||||||
env.host_string = ip_addr
|
env.host_string = ip_addr
|
||||||
|
|
||||||
time.sleep(5)
|
|
||||||
|
|
||||||
|
|
||||||
def ubuntu_lucid_32(fresh_os=True):
|
def ubuntu_lucid_32(fresh_os=True):
|
||||||
if (fresh_os):
|
if (fresh_os):
|
||||||
|
@ -153,6 +140,12 @@ def airtime_194_tar():
|
||||||
run('wget http://downloads.sourceforge.net/project/airtime/1.9.4/airtime-1.9.4.tar.gz')
|
run('wget http://downloads.sourceforge.net/project/airtime/1.9.4/airtime-1.9.4.tar.gz')
|
||||||
run('tar xfz airtime-1.9.4.tar.gz')
|
run('tar xfz airtime-1.9.4.tar.gz')
|
||||||
sudo('cd ~/airtime-1.9.4/install_full/ubuntu && ./airtime-full-install')
|
sudo('cd ~/airtime-1.9.4/install_full/ubuntu && ./airtime-full-install')
|
||||||
|
|
||||||
|
def airtime_devel():
|
||||||
|
sudo('apt-get update')
|
||||||
|
sudo('apt-get install -y git-core')
|
||||||
|
run('git clone https://github.com/sourcefabric/Airtime.git ~/airtime')
|
||||||
|
sudo('cd ~/airtime && git checkout devel && install_full/ubuntu/airtime-full-install || true')
|
||||||
|
|
||||||
|
|
||||||
def airtime_200():
|
def airtime_200():
|
||||||
|
|
|
@ -27,7 +27,8 @@ apt-get -y install tar gzip curl apache2 php5-pgsql libapache2-mod-php5 \
|
||||||
php-pear php5-gd postgresql odbc-postgresql python2.6 lame libsoundtouch-ocaml \
|
php-pear php5-gd postgresql odbc-postgresql python2.6 lame libsoundtouch-ocaml \
|
||||||
libmp3lame-dev libtaglib-ocaml libao-ocaml libmad-ocaml ecasound \
|
libmp3lame-dev libtaglib-ocaml libao-ocaml libmad-ocaml ecasound \
|
||||||
libesd0 icecast2 libportaudio2 libsamplerate0 rabbitmq-server patch \
|
libesd0 icecast2 libportaudio2 libsamplerate0 rabbitmq-server patch \
|
||||||
php5-curl mpg123 monit python-virtualenv multitail libcamomile-ocaml-data
|
php5-curl mpg123 monit python-virtualenv multitail libcamomile-ocaml-data \
|
||||||
|
libvorbis-ocaml
|
||||||
|
|
||||||
#possibly remove?
|
#possibly remove?
|
||||||
#libvorbis-ocaml-dev
|
#libvorbis-ocaml-dev
|
||||||
|
|
Loading…
Reference in New Issue