source: web/old/app_cfg.py @ 611bd26

debianmacno-cupsweb
Last change on this file since 611bd26 was 30beeab, checked in by Jessica B. Hamrick <jhamrick@…>, 14 years ago

Remove "gutenbach-" from directory names and rename "gutenbach" to "gutenbach-server"

  • Property mode set to 100644
File size: 1.7 KB
Line 
1from tg.configuration import AppConfig, Bunch
2import sipbmp3web
3from sipbmp3web import model
4from sipbmp3web.lib import app_globals, helpers
5
6base_config = AppConfig()
7base_config.renderers = []
8
9base_config.package = sipbmp3web
10
11#Set the default renderer
12base_config.default_renderer = 'genshi'
13base_config.renderers.append('genshi') 
14# if you want raw speed and have installed chameleon.genshi
15# you should try to use this renderer instead.
16# warning: for the moment chameleon does not handle i18n translations
17#base_config.renderers.append('chameleon_genshi')
18
19#Configure the base SQLALchemy Setup
20base_config.use_sqlalchemy = True
21base_config.model = sipbmp3web.model
22base_config.DBSession = sipbmp3web.model.DBSession
23
24# Configure the authentication backend
25base_config.auth_backend = 'sqlalchemy'
26base_config.sa_auth.dbsession = model.DBSession
27# what is the class you want to use to search for users in the database
28base_config.sa_auth.user_class = model.User
29# what is the class you want to use to search for groups in the database
30base_config.sa_auth.group_class = model.Group
31# what is the class you want to use to search for permissions in the database
32base_config.sa_auth.permission_class = model.Permission
33
34base_config.sa_auth.cookie_secret = "thisistotallysecretyo"
35
36# override this if you would like to provide a different who plugin for
37# managing login and logout of your application
38base_config.sa_auth.form_plugin = None
39
40# You may optionally define a page where you want users to be redirected to
41# on login:
42base_config.sa_auth.post_login_url = '/post_login'
43
44# You may optionally define a page where you want users to be redirected to
45# on logout:
46base_config.sa_auth.post_logout_url = '/post_logout'
Note: See TracBrowser for help on using the repository browser.