From: yomguy Date: Sun, 15 Jul 2012 21:55:15 +0000 (+0200) Subject: fix IPs, add some TELECASTER properties X-Git-Tag: 0.7-dev^2~131^2 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=90341a2c48e39a7327a1244e729d0a816dd2b70b;p=teleforma.git fix IPs, add some TELECASTER properties --- diff --git a/example/settings.py b/example/settings.py index 30b6f6ca..a8fb6365 100644 --- a/example/settings.py +++ b/example/settings.py @@ -185,7 +185,8 @@ EMAIL_SUBJECT_PREFIX = '[' + TELEMETA_ORGANIZATION.decode('utf8') + '] ' POSTMAN_AUTO_MODERATE_AS = True -#FILE_PROTECTION_METHOD = 'xsendfile' +TELECASTER_CONF = [{'type':'mp3','server_type':'icecast','conf':'/etc/telecaster/deefuzzer_mp3.xml', 'port':'8000'}, + {'type':'webm','server_type':'stream-m','conf':'/etc/telecaster/deefuzzer_webm.xml', 'port':'8080'}, ] -TELECASTER_CONF = [{'type':'mp3','conf':'/etc/telecaster/deefuzzer_mp3.xml', 'port':'8000'}, - {'type':'webm','conf':'/etc/telecaster/deefuzzer_webm.xml', 'port':'8080'}, ] +TELECASTER_RSYNC_SERVER = 'telecaster@jimi.parisson.com:archives/'+TELEMETA_ORGANIZATION+'/' +TELECASTER_RSYNC_LOG = '/var/log/telecaster/rsync.log' diff --git a/teleforma/views.py b/teleforma/views.py index 804e3fea..706df8d9 100755 --- a/teleforma/views.py +++ b/teleforma/views.py @@ -363,9 +363,12 @@ class ConferenceRecordView(FormView): def get_context_data(self, **kwargs): context = super(ConferenceRecordView, self).get_context_data(**kwargs) + from telecaster.tools import * context['all_courses'] = get_courses(self.request.user) context['mime_type'] = 'video/webm' - context['host'] = get_host(self.request) + status = Status() + status.update() + context['host'] = status.ip context['hidden_fields'] = self.hidden_fields return context