]> git.parisson.com Git - telecaster-instance.git/commitdiff
add context procs, add branch
authoryomguy <yomguy@parisson.com>
Thu, 7 Nov 2013 22:12:30 +0000 (23:12 +0100)
committeryomguy <yomguy@parisson.com>
Thu, 7 Nov 2013 22:12:30 +0000 (23:12 +0100)
gitmanage.py
settings.py
settings.pyc

index f782d74abe92413a9710fd82bf69180173657fc3..6cfd2c48d6d99d2d68bc44ca90011a8013e547fd 100644 (file)
@@ -42,6 +42,10 @@ class GitManage(object):
         args = 'diff-tree -s HEAD'
         self.process(args)
 
+    def branch(self):
+        args = 'branch'
+        self.process(args)
+
     def add_repo(self, name, repo):
         for app in self.apps:
             if not app in self.exclude and os.path.isdir(self.dir + os.sep + app):
index 3374a5a2a90defe0dc4570658f0f98dcd955f639..62623e4929675d47f710a3c57700e9bd1157372b 100644 (file)
@@ -61,7 +61,7 @@ MEDIA_ROOT = '/home/telecaster/archives/'
 # URL that handles the media served from MEDIA_ROOT. Make sure to use a
 # trailing slash if there is a path component (optional in other cases).
 # Examples: "http://media.lawrence.com", "http://example.com/media/"
-MEDIA_URL = '/media/'
+MEDIA_URL = 'http://192.168.1.65:8040/'
 
 # Absolute path to the directory static files should be collected to.
 # Don't put anything in this directory yourself; store your static files
@@ -139,7 +139,7 @@ INSTALLED_APPS = (
     'notes',
     'timezones',
     'jqchat',
-    'googletools',
+#    'googletools',
     'telecaster',
 )
 
@@ -150,6 +150,8 @@ TEMPLATE_CONTEXT_PROCESSORS = (
     "django.core.context_processors.i18n",
     "django.core.context_processors.media",
     'django.core.context_processors.static',
+    'teleforma.context_processors.periods',
+    'telecaster.context_processors.host',
 )
 
 TELEMETA_ORGANIZATION = 'Pre-Barreau'
@@ -179,9 +181,20 @@ EMAIL_SUBJECT_PREFIX = '[' + TELEMETA_ORGANIZATION.decode('utf8') + '] '
 
 POSTMAN_AUTO_MODERATE_AS = True
 
-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'}, ]
+ROUTER_IP = '80.15.175.56'
+
+TELECASTER_MASTER_SERVER = 'e-learning.crfpa.pre-barreau.com'
+TELECASTER_RSYNC_SERVER = 'telecaster@jimi.parisson.com:archives/'
+TELECASTER_RSYNC_LOG = '/var/log/telecaster/rsync.log'
+TELECASTER_CONF = [{'type':'mp3','server_type':'icecast',
+                    'conf':'/etc/telecaster/deefuzzer/telecaster_mp3_default.xml',
+                    'port':'8000'},
+                   {'type':'webm','server_type':'stream-m',
+                   'conf':'/etc/telecaster/deefuzzer/telecaster_webm_default.xml',
+                   'port':'8080'}, ]
+
+TELEFORMA_E_LEARNING_TYPE = 'CRFPA'
+TELEFORMA_GLOBAL_TWEETER = False
+TELEFORMA_PERIOD_TWEETER = True
 
-TELECASTER_RSYNC_SERVER = 'telecaster@192.168.0.31:archives/'
-TELECASTER_RSYNC_LOG = '/home/telecaster/logs/rsync.log'
 
index c958dffa5b5c5d2deecf3670b437fc74626ebb8f..eac51e535d29500fdde42df9cbc240e1905484b4 100644 (file)
Binary files a/settings.pyc and b/settings.pyc differ