source: gutenbach-web/app_cfg.py @ 407f6f1

debianmacno-cupsweb
Last change on this file since 407f6f1 was 973dd91, checked in by Edward Z. Yang <edwardzyang@…>, 16 years ago

Initial commit.

Signed-off-by: Edward Z. Yang <edwardzyang@…>

  • Property mode set to 100644
File size: 1.6 KB
RevLine 
[973dd91]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
34# override this if you would like to provide a different who plugin for
35# managing login and logout of your application
36base_config.sa_auth.form_plugin = None
37
38# You may optionally define a page where you want users to be redirected to
39# on login:
40base_config.sa_auth.post_login_url = '/post_login'
41
42# You may optionally define a page where you want users to be redirected to
43# on logout:
44base_config.sa_auth.post_logout_url = '/post_logout'
Note: See TracBrowser for help on using the repository browser.