app is called pandora now

This commit is contained in:
j 2010-06-24 15:18:33 +02:00
parent adc4d5a13f
commit b05f8fdb83
4 changed files with 28 additions and 28 deletions

View file

@ -8,17 +8,17 @@ import models
def send_encoder_message(msg): def send_encoder_message(msg):
conn = DjangoBrokerConnection() conn = DjangoBrokerConnection()
publisher = Publisher(connection=conn, exchange="oxdb-encoder", publisher = Publisher(connection=conn, exchange="pandora-encoder",
routing_key="oxdb-encoder") routing_key="pandora-encoder")
publisher.send(msg) publisher.send(msg)
publisher.close() publisher.close()
def run(): def run():
conn = DjangoBrokerConnection() conn = DjangoBrokerConnection()
consumer = Consumer(connection=conn, queue="oxdb-encoder", consumer = Consumer(connection=conn, queue="pandora-encoder",
exchange="oxdb-encoder", exchange="pandora-encoder",
routing_key="oxdb-encoder") routing_key="pandora-encoder")
def handle_background_tasks_callback(data, message): def handle_background_tasks_callback(data, message):
print("Got encoder message") print("Got encoder message")
print data print data

View file

@ -4,7 +4,7 @@
from django.conf.urls.defaults import * from django.conf.urls.defaults import *
urlpatterns = patterns("oxdb.oxuser.views", urlpatterns = patterns("oxuser.views",
(r'^preferences', 'api_preferences'), (r'^preferences', 'api_preferences'),
(r'^login', 'api_login'), (r'^login', 'api_login'),
(r'^logout', 'api_logout'), (r'^logout', 'api_logout'),

View file

@ -91,7 +91,7 @@ $(function(){
], ],
menus: [ menus: [
{ {
id: "oxdbMM", id: "pandoraMM",
title: site.name, title: site.name,
items: [ items: [
{ id: "about", title: "About " + site.name }, { id: "about", title: "About " + site.name },

View file

@ -1,6 +1,6 @@
$(function() { $(function() {
Ox.initLoading(); Ox.initLoading();
var oxdb = new Ox.App({ var pandora = new Ox.App({
requestURL: "/api/" requestURL: "/api/"
}), }),
$dialog = new Ox.Dialog({ $dialog = new Ox.Dialog({
@ -78,8 +78,8 @@ $(function() {
} }
var m = [ var m = [
["oxdb", "0xdb", [ ["pandora", "Pandora", [
["about", "About 0xdb", { ["about", "About Pandora", {
click: loadPage click: loadPage
}], }],
[], [],
@ -366,7 +366,7 @@ $(function() {
["advanced", "Advanced Find...", {}] ["advanced", "Advanced Find...", {}]
]], ]],
["help", "Help", [ ["help", "Help", [
["help", "0xdb Help", { ["help", "Pandora Help", {
shortcut: "SHIFT ?" shortcut: "SHIFT ?"
}] }]
]] ]]
@ -398,8 +398,8 @@ $(function() {
} }
if (group == "viewIcons") { if (group == "viewIcons") {
items.push([]); items.push([]);
items.push(["oxdb", "Always Use 0xdb Posters", { items.push(["pandora", "Always Use 0xdb Posters", {
group: "oxdbPosters", group: "pandoraPosters",
checked: false checked: false
}]); }]);
} }
@ -456,7 +456,7 @@ $(function() {
["stills", "Stills", function() {}], ["stills", "Stills", function() {}],
["timelines", "Timelines", function() {}], ["timelines", "Timelines", function() {}],
[], [],
["oxdb", "Always Use 0xdb Posters", function() {}], ["pandora", "Always Use 0xdb Posters", function() {}],
]], ]],
[], [],
["open", "Open Movie", [ ["open", "Open Movie", [
@ -534,7 +534,7 @@ $(function() {
["advanced", "Advanced Find", function() {}] ["advanced", "Advanced Find", function() {}]
]], ]],
["help", "Help", [ ["help", "Help", [
["help", "0xdb Help", { shortcut: "SHIFT ?" }, function() {}] ["help", "Pandora Help", { shortcut: "SHIFT ?" }, function() {}]
]], ]],
["test", "Test", [ ["test", "Test", [
["me", "Check Me", function() { $topMenu.toggleChecked("test/me"); }], ["me", "Check Me", function() { $topMenu.toggleChecked("test/me"); }],
@ -591,7 +591,7 @@ $(function() {
items.push({ items.push({
size: 64, size: 64,
id: code, id: code,
icon: "http://localhost/oxdbstatic/flags/" + flag + ".png", icon: "http://localhost/pandorastatic/flags/" + flag + ".png",
title: strings[0] + (strings.length > 1 ? "<br/>" + strings[1] : ""), title: strings[0] + (strings.length > 1 ? "<br/>" + strings[1] : ""),
info: Ox.formatNumber(v.items) + " Movie" + (v.items > 1 ? "s" : "") info: Ox.formatNumber(v.items) + " Movie" + (v.items > 1 ? "s" : "")
}); });
@ -637,13 +637,13 @@ $(function() {
width *= maxHeight / height; width *= maxHeight / height;
height = maxHeight; height = maxHeight;
} }
oxdb.$dialog = new Ox.Dialog({ pandora.$dialog = new Ox.Dialog({
title: "Foo", title: "Foo",
buttons: [ buttons: [
new Ox.Button() new Ox.Button()
.val("Close") .val("Close")
.click(function() { .click(function() {
oxdb.$dialog.close(); pandora.$dialog.close();
}) })
], ],
width: width, width: width,
@ -697,7 +697,7 @@ $(function() {
$featuresPanel.append("Item #" + (i + 1) + "<br/>") $featuresPanel.append("Item #" + (i + 1) + "<br/>")
} }
oxdb.$sideView = new Ox.SplitView({ pandora.$sideView = new Ox.SplitView({
orientation: "vertical", orientation: "vertical",
elements: [ elements: [
{ {
@ -861,7 +861,7 @@ $(function() {
$main.$body.order(order); $main.$body.order(order);
} }
if (data.menu == "topmenu" && data.item == "view/toggleSidebar") { if (data.menu == "topmenu" && data.item == "view/toggleSidebar") {
oxdb.$sideView.toggle(); pandora.$sideView.toggle();
$topMenu.toggleDisabled("view/toggleInfo"); $topMenu.toggleDisabled("view/toggleInfo");
} }
if (data.menu == "topmenu" && data.item == "view/toggleInfo") { if (data.menu == "topmenu" && data.item == "view/toggleInfo") {
@ -875,13 +875,13 @@ $(function() {
$find.setPlaceholder("Find: " + Ox.toTitleCase(find)); $find.setPlaceholder("Find: " + Ox.toTitleCase(find));
} }
if (data.menu == "topmenu" && data.item == "help/help") { if (data.menu == "topmenu" && data.item == "help/help") {
oxdb.$dialog = new Ox.Dialog({ pandora.$dialog = new Ox.Dialog({
title: "0xdb Help", title: "Pandora Help",
buttons: [ buttons: [
new Ox.Button() new Ox.Button()
.val("Close") .val("Close")
.click(function() { .click(function() {
oxdb.$dialog.close(); pandora.$dialog.close();
}) })
], ],
width: $(document).width() / 2, width: $(document).width() / 2,
@ -910,7 +910,7 @@ $(function() {
orientation: "horizontal", orientation: "horizontal",
elements: [ elements: [
{ {
element: oxdb.$sideView, element: pandora.$sideView,
size: 192, size: 192,
resizable: [128, 192, 256], resizable: [128, 192, 256],
resize: resizePlayer resize: resizePlayer
@ -930,8 +930,8 @@ $(function() {
$sideBrowser.$element.parent().parent().css({ $sideBrowser.$element.parent().parent().css({
height: height + "px" height: height + "px"
}); });
if (oxdb.$sideView.$element.css("bottom") != "0px") { if (pandora.$sideView.$element.css("bottom") != "0px") {
oxdb.$sideView.css({ pandora.$sideView.css({
bottom: (4 - height) + "px" bottom: (4 - height) + "px"
}) })
} }
@ -988,13 +988,13 @@ $(function() {
["space", function(data) { ["space", function(data) {
var height = $(document).height() - 96, var height = $(document).height() - 96,
width = height * 5/8; width = height * 5/8;
oxdb.$dialog = new Ox.Dialog({ pandora.$dialog = new Ox.Dialog({
title: data.items[0].title, title: data.items[0].title,
buttons: [ buttons: [
new Ox.Button() new Ox.Button()
.val("Close") .val("Close")
.click(function() { .click(function() {
oxdb.$dialog.close(); pandora.$dialog.close();
}) })
], ],
width: width, width: width,