From: riccardo Date: Tue, 5 Jul 2011 16:04:48 +0000 (+0200) Subject: Added HTTP request to refresh part of documents only X-Git-Tag: 1.0~69 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=d8aa46e89b9dc5c62db21fea46a9e2f504b649cc;p=telecaster-server.git Added HTTP request to refresh part of documents only --- diff --git a/example/settings.py b/example/settings.py index 3eec489..633f196 100644 --- a/example/settings.py +++ b/example/settings.py @@ -98,5 +98,5 @@ INSTALLED_APPS = ( 'south', ) -TELECASTER_CONF = '/etc/telecaster/telecaster.xml' +TELECASTER_CONF = '../conf/etc/telecaster/telecaster.xml' diff --git a/telecaster/htdocs/css/telecaster.css b/telecaster/htdocs/css/telecaster.css index 5dc55cb..66e8e81 100644 --- a/telecaster/htdocs/css/telecaster.css +++ b/telecaster/htdocs/css/telecaster.css @@ -104,7 +104,8 @@ table.hardware { /* BUTTONS */ .buttons a, .buttons button{ - display:block; + display:inline-block; + height: 20px; float:left; margin:0 7px 0 0; background-color:#f5f5f5; diff --git a/telecaster/models.py b/telecaster/models.py index 3445ba6..2b337a7 100644 --- a/telecaster/models.py +++ b/telecaster/models.py @@ -136,14 +136,14 @@ class Station(Model): return ' - '.join(self.description) + ' - ' + str(self.datetime_start) + ' > ' + str(self.datetime_stop) def to_dict(self): - dict = {'organization': self.organization.name, - 'department': self.department.name, - 'conference': self.conference.title, - 'professor': self.professor.name, - 'session': self.session.name, - 'comment': self.comment, - 'started': str(self.started), - } + dict = [ {'id':'organization','value': self.organization.name, 'class':'', 'label':'Organization'}, + {'id': 'department', 'value': self.department.name , 'class':'', 'label':'Departement'}, + {'id' : 'conference', 'value': self.conference.title, 'class':'' , 'label': 'Conference'}, + {'id': 'professor', 'value': self.professor.name, 'class':'' , 'label': 'Professor'}, + {'id': 'session', 'value': self.session.name, 'class':'' , 'label': 'Session'}, + {'id': 'comment', 'value': self.comment, 'class':'' , 'label': 'Comment'}, + {'id': 'started', 'value': str(self.started), 'class':'' , 'label': 'Started'}, + ] return dict @property diff --git a/telecaster/templates/telecaster/base.html b/telecaster/templates/telecaster/base.html index f4e492b..9f6354f 100644 --- a/telecaster/templates/telecaster/base.html +++ b/telecaster/templates/telecaster/base.html @@ -9,8 +9,30 @@ {% block javascript %} - - + + + {% endblock javascript %} @@ -25,6 +47,7 @@
Status
+
@@ -52,6 +75,7 @@
Name :
+ {% endblock hardware %} {% block content %} @@ -60,11 +84,11 @@ {% block footer %}
- - - Play Live - Archives - Trash + + + Play Live + Archives + Trash
diff --git a/telecaster/templates/telecaster/stop.html b/telecaster/templates/telecaster/stop.html index a3f81ab..da72e9f 100644 --- a/telecaster/templates/telecaster/stop.html +++ b/telecaster/templates/telecaster/stop.html @@ -2,19 +2,47 @@ {% load telecaster_utils %} {% load i18n %} +{% block javascript %} +{{ block.super }} + +{% endblock javascript %} + {% block content %}
{% csrf_token %}
- +
+ +
diff --git a/telecaster/tools/tools.py b/telecaster/tools/tools.py index e4f4d14..1126dc9 100644 --- a/telecaster/tools/tools.py +++ b/telecaster/tools/tools.py @@ -108,7 +108,7 @@ def get_pid(proc,uid): pid = proc.split(' ')[0] command = ' '.join(proc.split(' ')[1:])[:-1] pids.append(pid) - if len(pids) == 1: + if len(pids) < 1: return [] else: return [pids[0]]