from tg.configuration import AppConfig, Bunch import sipbmp3web from sipbmp3web import model from sipbmp3web.lib import app_globals, helpers base_config = AppConfig() base_config.renderers = [] base_config.package = sipbmp3web #Set the default renderer base_config.default_renderer = 'genshi' base_config.renderers.append('genshi') # if you want raw speed and have installed chameleon.genshi # you should try to use this renderer instead. # warning: for the moment chameleon does not handle i18n translations #base_config.renderers.append('chameleon_genshi') #Configure the base SQLALchemy Setup base_config.use_sqlalchemy = True base_config.model = sipbmp3web.model base_config.DBSession = sipbmp3web.model.DBSession # Configure the authentication backend base_config.auth_backend = 'sqlalchemy' base_config.sa_auth.dbsession = model.DBSession # what is the class you want to use to search for users in the database base_config.sa_auth.user_class = model.User # what is the class you want to use to search for groups in the database base_config.sa_auth.group_class = model.Group # what is the class you want to use to search for permissions in the database base_config.sa_auth.permission_class = model.Permission base_config.sa_auth.cookie_secret = "thisistotallysecretyo" # override this if you would like to provide a different who plugin for # managing login and logout of your application base_config.sa_auth.form_plugin = None # You may optionally define a page where you want users to be redirected to # on login: base_config.sa_auth.post_login_url = '/post_login' # You may optionally define a page where you want users to be redirected to # on logout: base_config.sa_auth.post_logout_url = '/post_logout'