import socket
from conf import *
-PROJET_TITRE = "Demande d'autorisation d'embauche"
+
+PROJET_TITRE = "Ressources humaines"
# Rapports d'erreurs
EMAIL_SUBJECT_PREFIX = '[auf_rh_dae - %s] ' % socket.gethostname()
# trailing slash if there is a path component (optional in other cases).
# Examples: "http://media.lawrence.com", "http://example.com/media/"
MEDIA_URL = '/media/'
-PRIVE_MEDIA_URL = '/prive/'
+PRIVE_MEDIA_URL = '/dae/prive/'
# URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a
ROOT_URLCONF = 'project.urls'
-
INSTALLED_APPS = (
'auf.django.skin',
'admin_tools',
'django.contrib.messages',
'django.contrib.sessions',
'django.contrib.admin',
+ 'auf.django.emploi',
'auf.django.admingroup',
'ajax_select',
'south',
'auf.django.workflow',
'project.rh_v1',
'project.dae',
- 'project.budget',
- 'project.recrutement',
+ #'project.budget',
+ 'alphafilter',
+ 'project.recrutement',
+ 'form_utils',
+ 'tinymce',
+ 'captcha',
+# 'private_files',
)
TEMPLATE_CONTEXT_PROCESSORS = (
'django.core.context_processors.request',
'auf.django.skin.context_processors.auf',
'project.context_processors.utilisateur',
+ 'project.context_processors.this_employe',
'project.context_processors.user_is_admin',
+ 'dae.context_processors.user_in_dae_groupes',
+ 'recrutement.context_processors.user_in_recrutement_groupes',
)
AUTHENTICATION_BACKENDS = (
'auf.django.auth.backends.CascadeBackend',
)
LOGIN_URL = "/connexion"
+LOGIN_REDIRECT_URL = "/"
TEMPLATE_LOADERS = (
'django.template.loaders.filesystem.load_template_source',
AJAX_LOOKUP_CHANNELS = {
'responsables' : ('dae.catalogues', 'Responsable'),
'dossiers' : ('dae.catalogues', 'Dossier'),
+ 'postes' : ('dae.catalogues', 'Poste'),
+}
+
+TINYMCE_DEFAULT_CONFIG = {
+'theme': "advanced",
+'plugins':"paste",
+'theme_advanced_buttons1' : "bold,italic,underline,|,formatselect,|,bullist,numlist,|,undo,redo,|,link,unlink",
+'theme_advanced_buttons2' : "",
+'theme_advanced_buttons3' : "",
+'theme_advanced_statusbar_location' : "bottom",
+'theme_advanced_toolbar_align' : "left",
+'theme_advanced_styles' : "Titre=titre;Sous-titre=sous-titre;Normal=normal",
+'width' : "800",
+'height' : "200",
+'theme_advanced_resizing' : "true",
+'custom_undo_redo_levels': 10,
+'theme_advanced_toolbar_location' : 'top',
+'inline_styles' : 'false',
+'paste_use_dialog' : 'false',
+'paste_auto_cleanup_on_paste' : 'true',
+'paste_convert_headers_to_strong' : 'false',
+'paste_strip_class_attributes' : 'all',
+'paste_remove_spans' : 'true',
+'paste_remove_styles' : 'true',
+'content_css' : '/media/css/tinymce.css',
}
+
+EMAIL_HOST = 'localhost'
+EMAIL_PORT = '1025'
+
+#FILE_PROTECTION_METHOD = 'basic'