From dd64712ca6c603a59024d323c9eaec9d5767fff6 Mon Sep 17 00:00:00 2001 From: yomguy Date: Mon, 16 Jul 2012 16:06:31 +0200 Subject: [PATCH 1/1] init tc instance --- __init__.py | 0 data/profs.json | 1 + jqchat | 1 + manage.py | 9 +++ notes | 1 + postman | 1 + settings.py | 187 +++++++++++++++++++++++++++++++++++++++++++++++ settings.pyc | Bin 0 -> 5530 bytes settings.py~ | 187 +++++++++++++++++++++++++++++++++++++++++++++++ telecaster | 1 + teleforma | 1 + telemeta | 1 + update_schema.sh | 7 ++ urls.py | 29 ++++++++ wsgi.py | 12 +++ 15 files changed, 438 insertions(+) create mode 100644 __init__.py create mode 100644 data/profs.json create mode 120000 jqchat create mode 100755 manage.py create mode 120000 notes create mode 120000 postman create mode 100644 settings.py create mode 100644 settings.pyc create mode 100644 settings.py~ create mode 120000 telecaster create mode 120000 teleforma create mode 120000 telemeta create mode 100755 update_schema.sh create mode 100644 urls.py create mode 100644 wsgi.py diff --git a/__init__.py b/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/data/profs.json b/data/profs.json new file mode 100644 index 0000000..8fcf780 --- /dev/null +++ b/data/profs.json @@ -0,0 +1 @@ +[{"username": "g.giustiniani", "courses": ["Methodo_EJ", "OB", "Bilan_formation"], "first_name": "Guillaume", "last_name": "GIUSTINIANI", "email": "guillaume.giustiniani@neuf.fr"}, {"username": "s.gilbert", "courses": ["PAC", "DA"], "first_name": "Simon", "last_name": "GILBERT", "email": "simongilbert10@hotmail.com"}, {"username": "l.andreu", "courses": ["OB", "Procoll"], "first_name": "Lionel", "last_name": "ANDREU", "email": "lionelandreu@hotmail.com"}, {"username": "s.pellet", "courses": ["OB", "Famille"], "first_name": "Sophie", "last_name": "PELLET", "email": "sophie_pellet@hotmail.com"}, {"username": "a.tadros", "courses": ["Patrimonial"], "first_name": "Antoine", "last_name": "TADROS", "email": "antoine.tadros@hotmail.fr"}, {"username": "r.haik", "courses": ["PC"], "first_name": "Rapha\u00eblle", "last_name": "HA\u00cfK", "email": "haikraph@yahoo.fr"}, {"username": "c.thery", "courses": ["Ccial"], "first_name": "Charlotte", "last_name": "THERY-VERCAEMER", "email": "therycharlotte@hotmail.com"}, {"username": "w.roumier", "courses": ["PP", "Penal"], "first_name": "William", "last_name": "ROUMIER", "email": "w.roumier@noos.fr"}, {"username": "l.primot", "courses": ["PP", "Libertes"], "first_name": "Ludovic", "last_name": "PRIMOT", "email": "luprim@club-internet.fr"}, {"username": "y-e.lebos", "courses": ["DIP"], "first_name": "Yves-Edouard", "last_name": "LEBOS", "email": "yedlebos@gmail.com"}, {"username": "f.ait-ahmed", "courses": ["Fiscal"], "first_name": "Faroudja", "last_name": "A\u00cfT-AHMED", "email": "f.aitahmed@yahoo.fr"}, {"username": "c.leberre", "courses": ["UE", "DPAE", "Libertes"], "first_name": "Christophe", "last_name": "LE BERRE", "email": "c.leberre@yahoo.fr"}, {"username": "j.capitaine", "courses": ["PP"], "first_name": "Jennifer", "last_name": "CAPITAINE", "email": "jennifercapitaine@orange.fr"}, {"username": "y.pagnerre", "courses": ["Travail"], "first_name": "Yannick", "last_name": "PAGNERRE", "email": "pagnerre.yannick@yahoo.fr"}, {"username": "jl.debaillenx", "courses": ["Methodo_NS", "NS"], "first_name": "Jean-Louis", "last_name": "DE BAILLENX", "email": "jl.debaillenx@orange.fr"}, {"username": "p.mbongo", "courses": ["Libertes"], "first_name": "Pascal", "last_name": "MBONGO", "email": "mbongo.pascal@orange.fr"}] \ No newline at end of file diff --git a/jqchat b/jqchat new file mode 120000 index 0000000..39075c3 --- /dev/null +++ b/jqchat @@ -0,0 +1 @@ +../django-jqchat/jqchat/ \ No newline at end of file diff --git a/manage.py b/manage.py new file mode 100755 index 0000000..c632a8a --- /dev/null +++ b/manage.py @@ -0,0 +1,9 @@ +#!/usr/bin/env python +import os, sys + +if __name__ == "__main__": + os.environ.setdefault("DJANGO_SETTINGS_MODULE", "settings") + + from django.core.management import execute_from_command_line + + execute_from_command_line(sys.argv) diff --git a/notes b/notes new file mode 120000 index 0000000..e913eea --- /dev/null +++ b/notes @@ -0,0 +1 @@ +../django-notes/notes/ \ No newline at end of file diff --git a/postman b/postman new file mode 120000 index 0000000..d643d09 --- /dev/null +++ b/postman @@ -0,0 +1 @@ +../django-postman/postman/ \ No newline at end of file diff --git a/settings.py b/settings.py new file mode 100644 index 0000000..cacde6c --- /dev/null +++ b/settings.py @@ -0,0 +1,187 @@ +# -*- coding: utf-8 -*- +# Django settings for sandbox project. + +import os +import sys +from django.core.urlresolvers import reverse_lazy + +sys.dont_write_bytecode = True + +DEBUG = True +TEMPLATE_DEBUG = DEBUG + +ADMINS = ( + ('Guillaume Pellerin', 'webmaster@parisson.com'), + ('Lists', 'lists@parisson.com'), +) + +MANAGERS = ADMINS + +DATABASES = { + 'default': { + 'ENGINE': 'django.db.backends.mysql', # Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'. + 'NAME': 'teleforma', # Or path to database file if using sqlite3. + 'USER': 'teleforma', # Not used with sqlite3. + 'PASSWORD': 'Lashjium5', # Not used with sqlite3. + 'HOST': '', # Set to empty string for localhost. Not used with sqlite3. + 'PORT': '', # Set to empty string for default. Not used with sqlite3. + } +} + +# Local time zone for this installation. Choices can be found here: +# http://en.wikipedia.org/wiki/List_of_tz_zones_by_name +# although not all choices may be available on all operating systems. +# On Unix systems, a value of None will cause Django to use the same +# timezone as the operating system. +# If running in a Windows environment this must be set to the same as your +# system time zone. +TIME_ZONE = 'Europe/Paris' + +# Language code for this installation. All choices can be found here: +# http://www.i18nguy.com/unicode/language-identifiers.html +#LANGUAGE_CODE = 'fr_FR' +LANGUAGES = [ ('fr', 'French'), + ('en', 'English'), +] + +SITE_ID = 1 + +# If you set this to False, Django will make some optimizations so as not +# to load the internationalization machinery. +USE_I18N = True + +# If you set this to False, Django will not format dates, numbers and +# calendars according to the current locale +USE_L10N = True + +# Absolute path to the directory that holds media. +# Example: "/home/media/media.lawrence.com/" +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/' + +# Absolute path to the directory static files should be collected to. +# Don't put anything in this directory yourself; store your static files +# in apps' "static/" subdirectories and in STATICFILES_DIRS. +# Example: "/home/media/media.lawrence.com/static/" +STATIC_ROOT = '/var/www/static/' + +# URL prefix for static files. +# Example: "http://media.lawrence.com/static/" +STATIC_URL = '/static/' + +# Additional locations of static files +STATICFILES_DIRS = ( + # Put strings here, like "/home/html/static" or "C:/www/django/static". + # Always use forward slashes, even on Windows. + # Don't forget to use absolute paths, not relative paths. +) + +# List of finder classes that know how to find static files in +# various locations. +STATICFILES_FINDERS = ( + 'django.contrib.staticfiles.finders.FileSystemFinder', + 'django.contrib.staticfiles.finders.AppDirectoriesFinder', + 'django.contrib.staticfiles.finders.DefaultStorageFinder', +) + +# Make this unique, and don't share it with anybody. +SECRET_KEY = 'a8l7%06wr2k+3=%#*#@#rvop2mmzko)44%7k(zx%lls^ihm9^5' + +# List of callables that know how to import templates from various sources. +#TEMPLATE_LOADERS = ( +# ('django.template.loaders.cached.Loader', ( +# 'django.template.loaders.filesystem.Loader', +# 'django.template.loaders.app_directories.Loader', +# )), +#) + + +MIDDLEWARE_CLASSES = ( + 'django.middleware.common.CommonMiddleware', + 'django.contrib.sessions.middleware.SessionMiddleware', + 'django.middleware.csrf.CsrfViewMiddleware', + 'django.contrib.auth.middleware.AuthenticationMiddleware', + 'django.contrib.messages.middleware.MessageMiddleware', + 'django.middleware.locale.LocaleMiddleware', + 'pagination.middleware.PaginationMiddleware', +) + +ROOT_URLCONF = 'urls' + +TEMPLATE_DIRS = ( + # Put strings here, like "/home/html/django_templates" or "C:/www/django/templates". + # Always use forward slashes, even on Windows. + # Don't forget to use absolute paths, not relative paths. + '/usr/local/lib/telecaster/teleforma/teleforma/templates' +) + +INSTALLED_APPS = ( + 'django.contrib.auth', + 'django.contrib.contenttypes', + 'django.contrib.sessions', + 'django.contrib.sites', + 'django.contrib.messages', + 'django.contrib.staticfiles', + 'django.contrib.admin', + 'telemeta', + 'jsonrpc', + 'south', + 'teleforma', + 'sorl.thumbnail', + 'django_extensions', + 'pagination', + 'postman', + 'markup_mixin', + 'notes', + 'timezones', + 'jqchat', + 'googletools', + 'telecaster', +) + +TEMPLATE_CONTEXT_PROCESSORS = ( + 'django.core.context_processors.request', + 'django.contrib.auth.context_processors.auth', + 'postman.context_processors.inbox', + "django.core.context_processors.i18n", + "django.core.context_processors.media", + 'django.core.context_processors.static', +) + +TELEMETA_ORGANIZATION = 'Pre-Barreau' +TELEMETA_SUBJECTS = ('barreau', 'crfpa', 'e-learning') +TELEMETA_DESCRIPTION = "Plateforme e-learning du CRFPA" +TELEMETA_GMAP_KEY = 'ABQIAAAArg7eSfnfTkBRma8glnGrlxRVbMrhnNNvToCbZQtWdaMbZTA_3RRGObu5PDoiBImgalVnnLU2yN4RMA' +TELEMETA_CACHE_DIR = MEDIA_ROOT + 'cache' +TELEMETA_EXPORT_CACHE_DIR = TELEMETA_CACHE_DIR + "/export" +TELEMETA_DATA_CACHE_DIR = TELEMETA_CACHE_DIR + "/data" + +TELEMETA_DOWNLOAD_ENABLED = True +TELEMETA_STREAMING_FORMATS = ('mp3', 'webm') +TELEMETA_DOWNLOAD_FORMATS = ('wav', 'mp3', 'webm') +TELEMETA_PUBLIC_ACCESS_PERIOD = 51 +TELEMETA_DEFAULT_GRAPHER_SIZES = ['360x130', '640x130'] +TELEMETA_DEFAULT_GRAPHER_ID = 'waveform_contour_wh' + +AUTH_PROFILE_MODULE = 'telemeta.userprofile' +LOGIN_URL = '/login/' +LOGIN_REDIRECT_URL = reverse_lazy('teleforma-desk') +SESSION_EXPIRE_AT_BROWSER_CLOSE = False + +EMAIL_HOST = 'smtp.numericable.fr' +DEFAULT_FROM_EMAIL = 'webmaster@parisson.com' +SERVER_EMAIL = 'webmaster@parisson.com' +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'}, ] + +TELECASTER_RSYNC_SERVER = 'telecaster@jimi.parisson.com:archives/'+TELEMETA_ORGANIZATION+'/' +TELECASTER_RSYNC_LOG = '/home/telecaster/logs/rsync.log' + diff --git a/settings.pyc b/settings.pyc new file mode 100644 index 0000000000000000000000000000000000000000..933a942bc219c498a83e54279a71d49b9385b96f GIT binary patch literal 5530 zcmeGg+jiT=aVXlfWy{xG!IbZ`|L+DR|a~}A4aHb(B zKu`jPL+4?IO#{1-H5aj&0d@(S%fPN=%~fo!!HRPM*mZC&0tuf!Y#siF8hr@-ci=n%wgFBV7%H)%-iyFC zf!~3x$G~0@UUVG{8QiRUXFRJ_z520L6-1g%nuI19XrxJvMjmsWOncPm1AGVm*c zM9n)(*g4dOpTsf^dgY9+AB0?#`$5dm8s$3ntbNpWRL?Na{x?2tG^zzD_hpg>T>L!V zTBa%sdA$KYurTJ&B@&?d1OQ^8B;yg@e8M zFcfcsVf6bqPsROXaif5-knegaCx401ZK|qi=XkMvOr0x*3lStS`bkb!wldrV;|G=z zX}?^>*G9m1C#X-+p*NPp$t5)GqYnf=nl6bacux^ALUB-0?}*sWa1)HDix?)p7xHpT zH51eiP!l6>5X5TzNy)l7_Ly9``Zx`RpsiKLBCV*2D`C)^bk;nq6jB8kLeVJnB+C2A zN$rzb#O;%KvJR?8?vIdf_T;!gG+9l2ddgTpi=D!Bq(>EKAC8UF=JZ$;#3~oi79)-k zN8z}I$tfNADmRIQ_Hr4qB1yxt9FC)2>;<8`mW$}}J=~QNTwXxzu>sUj#flWAV+$=~M<3^B*V7(w!j9bW{Fl%}Y~`5|iC}hcGGDPx~WJkU99Hkb7w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