1 # -*- encoding: utf-8 -*-
5 from project
.conf
import * # NOQA
7 PROJET_TITRE
= "Ressources humaines"
10 SERVER_EMAIL
= 'ne-pas-repondre@auf.org'
11 EMAIL_SUBJECT_PREFIX
= '[auf_rh_dae - %s] ' % socket
.gethostname()
13 ('Équipe ARI-SI', 'developpeurs@ca.auf.org'),
18 TIME_ZONE
= 'America/Montreal'
20 FORMAT_MODULE_PATH
= 'project.formats'
22 USE_THOUSAND_SEPARATOR
= False
25 SESSION_SAVE_EVERY_REQUEST
= True
26 SESSION_EXPIRE_AT_BROWSER_CLOSE
= True
28 # Absolute path to the directory that holds media.
29 # Example: "/home/media/media.lawrence.com/"
30 MEDIA_ROOT
= os
.path
.join(os
.path
.dirname(__file__
), 'media')
31 PRIVE_MEDIA_ROOT
= os
.path
.join(os
.path
.dirname(__file__
), 'media_prive')
34 os
.path
.join(os
.path
.dirname(__file__
), 'assets'),
36 STATIC_ROOT
= os
.path
.join(os
.path
.dirname(__file__
), 'static')
37 STATIC_URL
= '/static/'
39 # URL that handles the media served from MEDIA_ROOT. Make sure to use a
40 # trailing slash if there is a path component (optional in other cases).
41 # Examples: "http://media.lawrence.com", "http://example.com/media/"
43 PRIVE_MEDIA_URL
= '/prive/'
44 OE_PRIVE_MEDIA_URL
= '/recrutement/prive/'
46 # URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a
48 # Examples: "http://foo.com/media/", "/media/".
49 #ADMIN_MEDIA_PREFIX = '/media/django/'
51 # Don't share this with anybody.
52 SECRET_KEY
= '^2w#%abp_d+e#(7f5w$leef50)c@4y38cnn#ccji@84$2^rt#l'
54 MIDDLEWARE_CLASSES
= (
55 'django.middleware.common.CommonMiddleware',
56 'django.contrib.sessions.middleware.SessionMiddleware',
57 'django.contrib.messages.middleware.MessageMiddleware',
58 'django.contrib.auth.middleware.AuthenticationMiddleware',
59 'django.middleware.doc.XViewMiddleware',
60 'reversion.middleware.RevisionMiddleware',
63 ROOT_URLCONF
= 'project.urls'
67 'auf.django.references',
69 'auf.django.admingroup',
70 'auf.django.workflow',
71 'auf.django.permissions',
74 'admin_tools.theming',
76 'admin_tools.dashboard',
77 'django.contrib.admin',
78 'django.contrib.auth',
79 'django.contrib.contenttypes',
80 'django.contrib.humanize',
81 'django.contrib.messages',
82 'django.contrib.sessions',
83 'django.contrib.staticfiles',
94 'project.recrutement',
97 TEMPLATE_CONTEXT_PROCESSORS
= (
98 'django.contrib.auth.context_processors.auth',
99 'django.core.context_processors.debug',
100 'django.core.context_processors.i18n',
101 'django.core.context_processors.media',
102 'django.core.context_processors.static',
103 'django.contrib.messages.context_processors.messages',
104 'django.core.context_processors.request',
105 'auf.django.skin.context_processors.auf',
106 'project.dae.context_processors.user_in_dae_groupes',
109 AUTHENTICATION_BACKENDS
= (
110 'auf.django.auth.backends.CascadeBackend',
111 'auf.django.permissions.backends.AuthenticationBackend',
113 LOGIN_URL
= "/connexion"
114 LOGIN_REDIRECT_URL
= "/"
117 os
.path
.join(os
.path
.dirname(__file__
), "templates"),
121 ADMIN_TOOLS_INDEX_DASHBOARD
= 'project.dashboard.CustomIndexDashboard'
122 ADMIN_TOOLS_APP_INDEX_DASHBOARD
= 'project.dashboard.CustomAppIndexDashboard'
123 ADMIN_TOOLS_MENU
= 'project.menu.CustomMenu'
125 AJAX_LOOKUP_CHANNELS
= {
126 'responsables': ('project.dae.catalogues', 'Responsable'),
127 'dossiers': ('project.dae.catalogues', 'Dossier'),
128 'dae_postes': ('project.dae.catalogues', 'Poste'),
129 'pays': ('project.rh.catalogues', 'Pays'),
130 'implantations': ('project.rh.catalogues', 'Implantation'),
131 'typepostes': ('project.rh.catalogues', 'TypePoste'),
132 'postes': ('project.rh.catalogues', 'Poste'),
133 'valeurpoints': ('project.rh.catalogues', 'ValeurPoint'),
134 'employes': ('project.rh.catalogues', 'Employe'),
135 'dossiers': ('project.rh.catalogues', 'Dossier'),
137 AJAX_SELECT_INLINES
= 'inline'
140 TINYMCE_DEFAULT_CONFIG
= {
143 'theme_advanced_buttons1': (
144 "bold,italic,underline,|,formatselect,|,bullist,numlist,|,undo,redo,|,"
147 'theme_advanced_buttons2': "",
148 'theme_advanced_buttons3': "",
149 'theme_advanced_statusbar_location': "bottom",
150 'theme_advanced_toolbar_align': "left",
151 'theme_advanced_styles': "Titre=titre;Sous-titre=sous-titre;Normal=normal",
154 'theme_advanced_resizing': "true",
155 'custom_undo_redo_levels': 10,
156 'theme_advanced_toolbar_location': 'top',
157 'inline_styles': 'false',
158 'paste_use_dialog': 'false',
159 'paste_auto_cleanup_on_paste': 'true',
160 'paste_convert_headers_to_strong': 'false',
161 'paste_strip_class_attributes': 'all',
162 'paste_remove_spans': 'true',
163 'paste_remove_styles': 'true',
164 'content_css': '/media/css/tinymce.css',
168 SENDFILE_BACKEND
= 'sendfile.backends.simple'
170 QBE_DISPLAY_DATABASES
= False
172 # Il est *très* important de respecter la case.
173 QBE_CUSTOM_MODELS
= {'Rh': {
181 QBE_ALLOWED_FIELDS
= {'Rh': {
183 'nom', 'prenom', 'genre', 'date_naissance', 'situation_familiale',
186 'Poste': ['nom', 'date_debut', 'date_fin'],
188 'statut_residence', 'regime_travail',
189 'regime_travail_nb_heure_semaine', 'date_debut', 'date_fin'
191 'Remuneration': ['montant', 'date_debut', 'date_fin'],
192 'Contrat': ['date_debut', 'date_fin'],