Merge branch 'saas' into saas-store-file-size-and-hash-in-db
This commit is contained in:
commit
38aa1d1cd9
18 changed files with 8709 additions and 11 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -11,3 +11,4 @@ composer.phar
|
||||||
/airtime_mvc/tests/test_results.xml
|
/airtime_mvc/tests/test_results.xml
|
||||||
/tests/results.html
|
/tests/results.html
|
||||||
/tests/*.jar
|
/tests/*.jar
|
||||||
|
VERSION
|
||||||
|
|
|
@ -116,6 +116,15 @@ class PreferenceController extends Zend_Controller_Action
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function removeLogoAction()
|
||||||
|
{
|
||||||
|
$this->view->layout()->disableLayout();
|
||||||
|
// Remove reliance on .phtml files to render requests
|
||||||
|
$this->_helper->viewRenderer->setNoRender(true);
|
||||||
|
|
||||||
|
Application_Model_Preference::SetStationLogo("");
|
||||||
|
}
|
||||||
|
|
||||||
public function streamSettingAction()
|
public function streamSettingAction()
|
||||||
{
|
{
|
||||||
$CC_CONFIG = Config::getConfig();
|
$CC_CONFIG = Config::getConfig();
|
||||||
|
|
|
@ -589,13 +589,12 @@ class Application_Model_Preference
|
||||||
|
|
||||||
public static function SetStationLogo($imagePath)
|
public static function SetStationLogo($imagePath)
|
||||||
{
|
{
|
||||||
if (!empty($imagePath)) {
|
if (empty($imagePath)) {
|
||||||
$image = @file_get_contents($imagePath);
|
Logging::info("Removed station logo");
|
||||||
$image = base64_encode($image);
|
|
||||||
self::setValue("logoImage", $image);
|
|
||||||
} else {
|
|
||||||
Logging::warn("Attempting to set imagePath to empty string");
|
|
||||||
}
|
}
|
||||||
|
$image = @file_get_contents($imagePath);
|
||||||
|
$image = base64_encode($image);
|
||||||
|
self::setValue("logoImage", $image);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static function GetStationLogo()
|
public static function GetStationLogo()
|
||||||
|
|
|
@ -7,7 +7,11 @@
|
||||||
|
|
||||||
<?php echo $this->element->getElement('stationLogo')->render() ?>
|
<?php echo $this->element->getElement('stationLogo')->render() ?>
|
||||||
|
|
||||||
<div id="Logo-img-container"><img id="logo-img" onload='resizeImg(this, 450, 450);' src="data:image/png;base64,<?php echo $this->element->getView()->logoImg ?>" /></div>
|
<button id="logo-remove-btn" value="Remove" class="btn">Remove</button>
|
||||||
|
|
||||||
|
<div id="Logo-img-container">
|
||||||
|
<img onError="this.onerror = '';this.style.visibility='hidden';$('#logo-remove-btn').hide();" id="logo-img" onload='resizeImg(this, 450, 450);' src="data:image/png;base64,<?php echo $this->element->getView()->logoImg ?>" />
|
||||||
|
</div>
|
||||||
|
|
||||||
<?php echo $this->element->getElement('locale')->render() ?>
|
<?php echo $this->element->getElement('locale')->render() ?>
|
||||||
|
|
||||||
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
airtime_mvc/locale/hy/LC_MESSAGES/airtime.mo
Normal file
BIN
airtime_mvc/locale/hy/LC_MESSAGES/airtime.mo
Normal file
Binary file not shown.
4332
airtime_mvc/locale/hy/LC_MESSAGES/airtime.po
Normal file
4332
airtime_mvc/locale/hy/LC_MESSAGES/airtime.po
Normal file
File diff suppressed because it is too large
Load diff
Binary file not shown.
BIN
airtime_mvc/locale/ja_JP/LC_MESSAGES/airtime.mo
Normal file
BIN
airtime_mvc/locale/ja_JP/LC_MESSAGES/airtime.mo
Normal file
Binary file not shown.
4333
airtime_mvc/locale/ja_JP/LC_MESSAGES/airtime.po
Normal file
4333
airtime_mvc/locale/ja_JP/LC_MESSAGES/airtime.po
Normal file
File diff suppressed because it is too large
Load diff
Binary file not shown.
Binary file not shown.
|
@ -2197,6 +2197,14 @@ dd.radio-inline-list, .preferences dd.radio-inline-list, .stream-config dd.radio
|
||||||
height: 120px;
|
height: 120px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.preferences #logo-remove-btn {
|
||||||
|
float: right;
|
||||||
|
}
|
||||||
|
|
||||||
|
.preferences #Logo-img-container {
|
||||||
|
float: left;
|
||||||
|
}
|
||||||
|
|
||||||
#show_time_info {
|
#show_time_info {
|
||||||
font-size:12px;
|
font-size:12px;
|
||||||
height:30px;
|
height:30px;
|
||||||
|
|
|
@ -88,9 +88,11 @@ function setCollapsibleWidgetJsCode() {
|
||||||
$('#widgetCode-label').show("fast");
|
$('#widgetCode-label').show("fast");
|
||||||
$('#widgetCode-element').show("fast");
|
$('#widgetCode-element').show("fast");
|
||||||
} else {
|
} else {
|
||||||
//hide js textarea
|
if ($('#widgetCode-label').is(":visible")) {
|
||||||
$('#widgetCode-label').hide("fast");
|
//hide js textarea
|
||||||
$('#widgetCode-element').hide("fast");
|
$('#widgetCode-label').hide();
|
||||||
|
$('#widgetCode-element').hide();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
x();
|
x();
|
||||||
|
@ -121,6 +123,10 @@ $(document).ready(function() {
|
||||||
return false;
|
return false;
|
||||||
}).next().hide();
|
}).next().hide();
|
||||||
|
|
||||||
|
$('#logo-remove-btn').click(function() {
|
||||||
|
$.post(baseUrl+'Preference/remove-logo', function(json){});
|
||||||
|
});
|
||||||
|
|
||||||
/* No longer using AJAX for this form. Zend + our code makes it needlessly hard to deal with. -- Albert
|
/* No longer using AJAX for this form. Zend + our code makes it needlessly hard to deal with. -- Albert
|
||||||
$('#pref_save').live('click', function() {
|
$('#pref_save').live('click', function() {
|
||||||
var data = $('#pref_form').serialize();
|
var data = $('#pref_form').serialize();
|
||||||
|
|
|
@ -5,6 +5,12 @@ import socket
|
||||||
from boto.s3.connection import S3Connection
|
from boto.s3.connection import S3Connection
|
||||||
from boto.s3.key import Key
|
from boto.s3.key import Key
|
||||||
|
|
||||||
|
# Fix for getaddrinfo deadlock. See these issues for details:
|
||||||
|
# https://github.com/gevent/gevent/issues/349
|
||||||
|
# https://github.com/docker/docker-registry/issues/400
|
||||||
|
u'fix getaddrinfo deadlock'.encode('idna')
|
||||||
|
|
||||||
|
CLOUD_CONFIG_PATH = '/etc/airtime-saas/cloud_storage.conf'
|
||||||
STORAGE_BACKEND_FILE = "file"
|
STORAGE_BACKEND_FILE = "file"
|
||||||
SOCKET_TIMEOUT = 240
|
SOCKET_TIMEOUT = 240
|
||||||
|
|
||||||
|
|
|
@ -37,7 +37,7 @@ signal.signal(signal.SIGINT, keyboardInterruptHandler)
|
||||||
#need to wait for Python 2.7 for this..
|
#need to wait for Python 2.7 for this..
|
||||||
#logging.captureWarnings(True)
|
#logging.captureWarnings(True)
|
||||||
|
|
||||||
POLL_INTERVAL = 1800
|
POLL_INTERVAL = 480
|
||||||
|
|
||||||
class PypoFetch(Thread):
|
class PypoFetch(Thread):
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue