Merge branch 'devel' of dev.sourcefabric.org:airtime into devel
This commit is contained in:
commit
7496d26032
|
@ -105,7 +105,7 @@ class Application_Form_SupportSettings extends Zend_Form
|
||||||
'minheight' => 200,
|
'minheight' => 200,
|
||||||
'maxwidth' => 600,
|
'maxwidth' => 600,
|
||||||
'maxheight' => 600));
|
'maxheight' => 600));
|
||||||
$upload->setAttrib('accept', 'image/jpeg');
|
$upload->setAttrib('accept', 'image/jpeg,image/gif,image/png,image/jpg');
|
||||||
$this->addElement($upload);
|
$this->addElement($upload);
|
||||||
|
|
||||||
//enable support feedback
|
//enable support feedback
|
||||||
|
|
|
@ -4,7 +4,6 @@
|
||||||
<a href="#" id="spl_crossfade" class="ui-button ui-button-icon-only ui-widget ui-state-default crossfade-main-button">
|
<a href="#" id="spl_crossfade" class="ui-button ui-button-icon-only ui-widget ui-state-default crossfade-main-button">
|
||||||
<span class="ui-icon crossfade-main-icon"></span><span class="ui-button-text">Playlist crossfade</span>
|
<span class="ui-icon crossfade-main-icon"></span><span class="ui-button-text">Playlist crossfade</span>
|
||||||
</a>
|
</a>
|
||||||
<button id="spl_close" class="ui-button right-floated" role="button" aria-disabled="false">Done Editing</button>
|
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
||||||
<?php if (isset($this->pl)) : ?>
|
<?php if (isset($this->pl)) : ?>
|
||||||
|
|
|
@ -338,17 +338,6 @@ function noOpenPL(json) {
|
||||||
.click(newSPL);
|
.click(newSPL);
|
||||||
}
|
}
|
||||||
|
|
||||||
function closeSPL() {
|
|
||||||
var url;
|
|
||||||
|
|
||||||
// stop playing any preview
|
|
||||||
$('#jquery_jplayer_1').jPlayer('stop');
|
|
||||||
|
|
||||||
url = '/Playlist/close/format/json';
|
|
||||||
|
|
||||||
$.post(url, noOpenPL);
|
|
||||||
}
|
|
||||||
|
|
||||||
function createPlaylistMetaForm(json) {
|
function createPlaylistMetaForm(json) {
|
||||||
var submit, form;
|
var submit, form;
|
||||||
|
|
||||||
|
@ -459,10 +448,6 @@ function setUpSPL() {
|
||||||
.button()
|
.button()
|
||||||
.click(newSPL);
|
.click(newSPL);
|
||||||
|
|
||||||
$("#spl_close")
|
|
||||||
.button()
|
|
||||||
.click(closeSPL);
|
|
||||||
|
|
||||||
$("#spl_crossfade").click(function(){
|
$("#spl_crossfade").click(function(){
|
||||||
|
|
||||||
if($(this).hasClass("ui-state-active")) {
|
if($(this).hasClass("ui-state-active")) {
|
||||||
|
|
|
@ -440,6 +440,9 @@ $(window).resize(function(){
|
||||||
var widthPercent = parseInt(calendarWidth)+"%";
|
var widthPercent = parseInt(calendarWidth)+"%";
|
||||||
$("#schedule_calendar").css("width", widthPercent);
|
$("#schedule_calendar").css("width", widthPercent);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 200 px for top dashboard and 50 for padding on main content
|
||||||
|
// this calculation was copied from schedule.js line 326
|
||||||
var mainHeight = document.documentElement.clientHeight - 200 - 50;
|
var mainHeight = document.documentElement.clientHeight - 200 - 50;
|
||||||
$('#schedule_calendar').fullCalendar('option', 'contentHeight', mainHeight)
|
$('#schedule_calendar').fullCalendar('option', 'contentHeight', mainHeight)
|
||||||
$("#schedule_calendar").fullCalendar('render');
|
$("#schedule_calendar").fullCalendar('render');
|
||||||
|
|
|
@ -1,27 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
|
|
||||||
# Absolute path to this script
|
|
||||||
SCRIPT=`readlink -f $0`
|
|
||||||
# Absolute directory this script is in
|
|
||||||
SCRIPTPATH=`dirname $SCRIPT`
|
|
||||||
|
|
||||||
VIRTUAL_ENV_DIR="/usr/lib/airtime/airtime_virtualenv"
|
|
||||||
if [ -d $VIRTUAL_ENV_DIR ]; then
|
|
||||||
virtualenv_bin="/usr/lib/airtime/airtime_virtualenv/bin/"
|
|
||||||
|
|
||||||
if [ -f ${virtualenv_bin}activate ]; then
|
|
||||||
. ${virtualenv_bin}activate
|
|
||||||
else
|
|
||||||
echo 1
|
|
||||||
exit 0
|
|
||||||
fi
|
|
||||||
|
|
||||||
CHECK=$(python ${SCRIPTPATH}/virtualenv-check.py)
|
|
||||||
if [ "$CHECK" == "1" ]; then
|
|
||||||
echo 1
|
|
||||||
exit 0
|
|
||||||
fi
|
|
||||||
echo 0
|
|
||||||
else
|
|
||||||
echo 1
|
|
||||||
fi
|
|
|
@ -1,11 +0,0 @@
|
||||||
try:
|
|
||||||
import amqplib
|
|
||||||
import anyjson
|
|
||||||
import configobj
|
|
||||||
import kombu
|
|
||||||
import mutagen
|
|
||||||
import poster
|
|
||||||
import pyinotify
|
|
||||||
print 0
|
|
||||||
except ImportError, e:
|
|
||||||
print 1
|
|
|
@ -6,36 +6,38 @@ SCRIPTPATH=`dirname $SCRIPT`
|
||||||
|
|
||||||
VIRTUAL_ENV_DIR="/usr/lib/airtime/airtime_virtualenv"
|
VIRTUAL_ENV_DIR="/usr/lib/airtime/airtime_virtualenv"
|
||||||
VIRTUAL_ENV_SHARE="/usr/share/python-virtualenv/"
|
VIRTUAL_ENV_SHARE="/usr/share/python-virtualenv/"
|
||||||
CHECK=$(${SCRIPTPATH}/virtualenv-check)
|
|
||||||
if [ "$CHECK" == "1" ]; then
|
|
||||||
echo -e "\n*** Creating Virtualenv for Airtime ***"
|
|
||||||
EXTRAOPTION=$(virtualenv --help | grep extra-search-dir)
|
|
||||||
|
|
||||||
if [ "$?" -eq "0" ]; then
|
if [ -d $VIRTUAL_ENV_DIR ]; then
|
||||||
virtualenv --extra-search-dir=${SCRIPTPATH}/3rd_party --no-site-package -p /usr/bin/python2.6 /usr/lib/airtime/airtime_virtualenv || exit 1
|
echo -e "\n*** Existing Airtime Virtualenv Found ***"
|
||||||
else
|
rm -rf ${VIRTUAL_ENV_DIR}
|
||||||
# copy distribute-0.6.10.tar.gz to /usr/share/python-virtualenv/
|
echo -e "\n*** Reinstalling Airtime Virtualenv ***"
|
||||||
# this is due to the bug in virtualenv 1.4.9
|
fi
|
||||||
if [ -d "$VIRTUAL_ENV_SHARE" ]; then
|
|
||||||
|
echo -e "\n*** Creating Virtualenv for Airtime ***"
|
||||||
|
EXTRAOPTION=$(virtualenv --help | grep extra-search-dir)
|
||||||
|
|
||||||
|
if [ "$?" -eq "0" ]; then
|
||||||
|
virtualenv --extra-search-dir=${SCRIPTPATH}/3rd_party --no-site-package -p /usr/bin/python2.6 /usr/lib/airtime/airtime_virtualenv || exit 1
|
||||||
|
else
|
||||||
|
# copy distribute-0.6.10.tar.gz to /usr/share/python-virtualenv/
|
||||||
|
# this is due to the bug in virtualenv 1.4.9
|
||||||
|
if [ -d "$VIRTUAL_ENV_SHARE" ]; then
|
||||||
cp ${SCRIPTPATH}/3rd_party/distribute-0.6.10.tar.gz /usr/share/python-virtualenv/
|
cp ${SCRIPTPATH}/3rd_party/distribute-0.6.10.tar.gz /usr/share/python-virtualenv/
|
||||||
fi
|
fi
|
||||||
virtualenv --no-site-package -p /usr/bin/python2.6 /usr/lib/airtime/airtime_virtualenv || exit 1
|
virtualenv --no-site-package -p /usr/bin/python2.6 /usr/lib/airtime/airtime_virtualenv || exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo -e "\n*** Installing Python Libraries ***"
|
echo -e "\n*** Installing Python Libraries ***"
|
||||||
/usr/lib/airtime/airtime_virtualenv/bin/pip install ${SCRIPTPATH}/airtime_virtual_env.pybundle -E /usr/lib/airtime/airtime_virtualenv || exit 1
|
/usr/lib/airtime/airtime_virtualenv/bin/pip install ${SCRIPTPATH}/airtime_virtual_env.pybundle -E /usr/lib/airtime/airtime_virtualenv || exit 1
|
||||||
|
|
||||||
echo -e "\n*** Patching Python Libraries ***"
|
echo -e "\n*** Patching Python Libraries ***"
|
||||||
PATCHES=${SCRIPTPATH}/patches/*
|
PATCHES=${SCRIPTPATH}/patches/*
|
||||||
for file in $(find $PATCHES -print); do
|
for file in $(find $PATCHES -print); do
|
||||||
if [ -d $file ]; then
|
if [ -d $file ]; then
|
||||||
DIRNAME=$(basename $file)
|
DIRNAME=$(basename $file)
|
||||||
echo -e "\n ---Applying Patches for $DIRNAME---"
|
echo -e "\n ---Applying Patches for $DIRNAME---"
|
||||||
else
|
|
||||||
patch -N -p0 -i $file
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
else
|
else
|
||||||
echo -e "\n*** Existing Airtime Virtualenv Found ***"
|
patch -N -p0 -i $file
|
||||||
fi
|
fi
|
||||||
|
done
|
||||||
exit 0
|
exit 0
|
||||||
|
|
Loading…
Reference in New Issue