Project

General

Profile

Revision 5dbfa80d

ID5dbfa80d7249676b39841fb1260818d2a49979a1
Parent bfd8ead8
Child 12163111

Added by Francois POIROTTE over 14 years ago

Remplacement des fichiers de configuration Python (settings.py) en fichiers INI (settings.ini), resp. pour les settings de test.
Correction des dépendances entre les composants (vigiboard -> vigilo.turbogears -> vigilo.models) et sur les bibliothèques.
Réintégration de la configuration de SQLAlchemy dans les fichiers INI de Turbogears.
Mise à jour de la configuration du corrélateur à titre d'exemple.
La manière de configurer les loggers a RADICALEMENT changée !! Lisez les settings du corrélateur pour un exemple.

git-svn-id: https://vigilo-dev.si.c-s.fr/svn@1866 b22e2e97-25c9-44ff-b637-2e5ceca36478

View differences:

vigiboard/config/app_cfg.py
15 15
"""
16 16

  
17 17
from vigilo import models
18
from vigilo.models.session import DBSession
19
from vigilo.models.vigilo_bdd_config import metadata
20
metadata.bind = DBSession.bind
21 18

  
22 19
from vigilo.turbogears import VigiloAppConfig
23 20
from pylons.i18n import lazy_ugettext as l_
......
27 24

  
28 25

  
29 26
base_config = VigiloAppConfig('vigiboard')
27

  
30 28
base_config.renderers = []
31 29

  
32 30
base_config.package = vigiboard
......
34 32
#Set the default renderer
35 33
base_config.default_renderer = 'genshi'
36 34
base_config.renderers.append('genshi')
37
# if you want raw speed and have installed chameleon.genshi
38
# you should try to use this renderer instead.
39
# warning: for the moment chameleon does not handle i18n translations
40
#base_config.renderers.append('chameleon_genshi')
41 35

  
42 36
#Configure the base SQLALchemy Setup
43 37
base_config.use_sqlalchemy = True
44 38
base_config.model = models
45
base_config.DBSession = DBSession
39

  
40
#from vigilo.models import configure
41

  
42
#base_config.DBSession = configure.DBSession
46 43

  
47 44
# Configure the authentication backend
48 45
base_config.auth_backend = 'sqlalchemy'
49
base_config.sa_auth.dbsession = DBSession
46
#base_config.sa_auth.dbsession = configure.DBSession
50 47
# what is the class you want to use to search for users in the database
51 48
base_config.sa_auth.user_class = models.User
52 49
# what is the class you want to use to search for groups in the database

Also available in: Unified diff