Revision 858d88aa
Ajout d'un préfix dans les settings de développement.
Nettoyage du app_cfg.py (les réglages correspondant sont désormais présents dans vigilo.turbogears).
Légère correction du Makefile (problème de l'inclusion).
git-svn-id: https://vigilo-dev.si.c-s.fr/svn@1990 b22e2e97-25c9-44ff-b637-2e5ceca36478
vigiboard/config/app_cfg.py | ||
---|---|---|
14 | 14 |
|
15 | 15 |
""" |
16 | 16 |
|
17 |
from vigilo import models |
|
18 |
|
|
19 | 17 |
from vigilo.turbogears import VigiloAppConfig |
20 | 18 |
from pylons.i18n import lazy_ugettext as l_ |
21 | 19 |
|
... | ... | |
33 | 31 |
|
34 | 32 |
#Configure the base SQLALchemy Setup |
35 | 33 |
base_config.use_sqlalchemy = True |
36 |
base_config.model = models |
|
37 | 34 |
|
38 | 35 |
# Configure the authentication backend |
39 | 36 |
base_config.auth_backend = 'sqlalchemy' |
40 | 37 |
|
41 |
# what is the class you want to use to search for users in the database |
|
42 |
base_config.sa_auth.user_class = models.User |
|
43 |
# what is the class you want to use to search for groups in the database |
|
44 |
base_config.sa_auth.group_class = models.UserGroup |
|
45 |
# what is the class you want to use to search for permissions in the database |
|
46 |
base_config.sa_auth.permission_class = models.Permission |
|
47 |
# The name "groups" is already used for groups of hosts. |
|
48 |
# We use "usergroups" when referering to users to avoid confusion. |
|
49 |
base_config.sa_auth.translations.groups = 'usergroups' |
|
50 |
|
|
51 | 38 |
# override this if you would like to provide a different who plugin for |
52 | 39 |
# managing login and logout of your application |
53 | 40 |
base_config.sa_auth.form_plugin = None |
Also available in: Unified diff