Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
172 ashish 1
# -*- coding: utf-8 -*-
2
"""
3
Global configuration file for TG2-specific settings in Wiki-20.
4
 
5
This file complements development/deployment.ini.
6
 
7
Please note that **all the argument values are strings**. If you want to
8
convert them into boolean, for example, you should use the
9
:func:`paste.deploy.converters.asbool` function, as in::
10
 
11
    from paste.deploy.converters import asbool
12
    setting = asbool(global_conf.get('the_setting'))
13
 
14
"""
15
 
16
from tg.configuration import AppConfig
17
 
18
import wiki20
19
from wiki20 import model
20
from wiki20.lib import app_globals, helpers 
21
 
22
base_config = AppConfig()
23
base_config.renderers = []
24
 
25
base_config.package = wiki20
26
 
27
#Set the default renderer
28
base_config.default_renderer = 'genshi'
29
base_config.renderers.append('genshi')
30
# if you want raw speed and have installed chameleon.genshi
31
# you should try to use this renderer instead.
32
# warning: for the moment chameleon does not handle i18n translations
33
#base_config.renderers.append('chameleon_genshi')
34
 
35
#Configure the base SQLALchemy Setup
36
base_config.use_sqlalchemy = True
37
base_config.model = wiki20.model
38
base_config.DBSession = wiki20.model.DBSession
39