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 DATE_INPUT_FORMATS
= (
21 '%d-%m-%Y', '%d/%m/%Y', '%d %m %Y',
22 '%d-%m-%y', '%d/%m/%y', '%d %m %y',
25 SESSION_SAVE_EVERY_REQUEST
= True
26 SESSION_EXPIRE_AT_BROWSER_CLOSE
= True
28 SHORT_DATE_FORMAT
= 'd-m-Y'
29 LANGUAGE_CODE
= 'fr-ca'
31 USE_THOUSAND_SEPARATOR
= True
33 # Absolute path to the directory that holds media.
34 # Example: "/home/media/media.lawrence.com/"
35 MEDIA_ROOT
= os
.path
.join(os
.path
.dirname(__file__
), 'media')
36 PRIVE_MEDIA_ROOT
= os
.path
.join(os
.path
.dirname(__file__
), 'media_prive')
39 os
.path
.join(os
.path
.dirname(__file__
), 'assets'),
43 STATIC_ROOT
= os
.path
.join(os
.path
.dirname(__file__
), 'static')
44 STATIC_URL
= '/static/'
46 # URL that handles the media served from MEDIA_ROOT. Make sure to use a
47 # trailing slash if there is a path component (optional in other cases).
48 # Examples: "http://media.lawrence.com", "http://example.com/media/"
50 PRIVE_MEDIA_URL
= '/prive/'
51 OE_PRIVE_MEDIA_URL
= '/recrutement/prive/'
53 # URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a
55 # Examples: "http://foo.com/media/", "/media/".
56 #ADMIN_MEDIA_PREFIX = '/media/django/'
58 # Don't share this with anybody.
59 SECRET_KEY
= '^2w#%abp_d+e#(7f5w$leef50)c@4y38cnn#ccji@84$2^rt#l'
61 MIDDLEWARE_CLASSES
= (
62 'django.middleware.common.CommonMiddleware',
63 'django.contrib.sessions.middleware.SessionMiddleware',
64 'django.contrib.messages.middleware.MessageMiddleware',
65 'django.contrib.auth.middleware.AuthenticationMiddleware',
66 'django.middleware.doc.XViewMiddleware',
67 'reversion.middleware.RevisionMiddleware',
70 ROOT_URLCONF
= 'project.urls'
74 'auf.django.references',
76 'auf.django.admingroup',
77 'auf.django.workflow',
78 'auf.django.permissions',
81 'admin_tools.theming',
83 'admin_tools.dashboard',
84 'django.contrib.admin',
85 'django.contrib.auth',
86 'django.contrib.contenttypes',
87 'django.contrib.humanize',
88 'django.contrib.messages',
89 'django.contrib.sessions',
90 'django.contrib.staticfiles',
101 'project.recrutement',
104 TEMPLATE_CONTEXT_PROCESSORS
= (
105 'django.contrib.auth.context_processors.auth',
106 'django.core.context_processors.debug',
107 'django.core.context_processors.i18n',
108 'django.core.context_processors.media',
109 'django.core.context_processors.static',
110 'django.contrib.messages.context_processors.messages',
111 'django.core.context_processors.request',
112 'auf.django.skin.context_processors.auf',
113 'project.dae.context_processors.user_in_dae_groupes',
116 AUTHENTICATION_BACKENDS
= (
117 'auf.django.auth.backends.CascadeBackend',
118 'auf.django.permissions.backends.AuthenticationBackend',
120 LOGIN_URL
= "/connexion"
121 LOGIN_REDIRECT_URL
= "/"
124 os
.path
.join(os
.path
.dirname(__file__
), "templates"),
128 ADMIN_TOOLS_INDEX_DASHBOARD
= 'project.dashboard.CustomIndexDashboard'
129 ADMIN_TOOLS_APP_INDEX_DASHBOARD
= 'project.dashboard.CustomAppIndexDashboard'
130 ADMIN_TOOLS_MENU
= 'project.menu.CustomMenu'
132 AJAX_LOOKUP_CHANNELS
= {
133 'responsables': ('project.dae.catalogues', 'Responsable'),
134 'dossiers': ('project.dae.catalogues', 'Dossier'),
135 'dae_postes': ('project.dae.catalogues', 'Poste'),
136 'pays': ('project.rh.catalogues', 'Pays'),
137 'implantations': ('project.rh.catalogues', 'Implantation'),
138 'typepostes': ('project.rh.catalogues', 'TypePoste'),
139 'postes': ('project.rh.catalogues', 'Poste'),
140 'valeurpoints': ('project.rh.catalogues', 'ValeurPoint'),
141 'employes': ('project.rh.catalogues', 'Employe'),
142 'dossiers': ('project.rh.catalogues', 'Dossier'),
144 AJAX_SELECT_INLINES
= 'inline'
147 TINYMCE_DEFAULT_CONFIG
= {
150 'theme_advanced_buttons1': (
151 "bold,italic,underline,|,formatselect,|,bullist,numlist,|,undo,redo,|,"
154 'theme_advanced_buttons2': "",
155 'theme_advanced_buttons3': "",
156 'theme_advanced_statusbar_location': "bottom",
157 'theme_advanced_toolbar_align': "left",
158 'theme_advanced_styles': "Titre=titre;Sous-titre=sous-titre;Normal=normal",
161 'theme_advanced_resizing': "true",
162 'custom_undo_redo_levels': 10,
163 'theme_advanced_toolbar_location': 'top',
164 'inline_styles': 'false',
165 'paste_use_dialog': 'false',
166 'paste_auto_cleanup_on_paste': 'true',
167 'paste_convert_headers_to_strong': 'false',
168 'paste_strip_class_attributes': 'all',
169 'paste_remove_spans': 'true',
170 'paste_remove_styles': 'true',
171 'content_css': '/media/css/tinymce.css',
175 SENDFILE_BACKEND
= 'sendfile.backends.simple'
177 QBE_DISPLAY_DATABASES
= False
179 # Il est *très* important de respecter la case.
180 QBE_CUSTOM_MODELS
= {'Rh': {
188 QBE_ALLOWED_FIELDS
= {'Rh': {
190 'nom', 'prenom', 'genre', 'date_naissance', 'situation_familiale',
193 'Poste': ['nom', 'date_debut', 'date_fin'],
195 'statut_residence', 'regime_travail',
196 'regime_travail_nb_heure_semaine', 'date_debut', 'date_fin'
198 'Remuneration': ['montant', 'date_debut', 'date_fin'],
199 'Contrat': ['date_debut', 'date_fin'],