Blame | Last modification | View Log | RSS feed
# -*- coding: utf-8 -*-"""Global configuration file for TG2-specific settings in Wiki-20.This file complements development/deployment.ini.Please note that **all the argument values are strings**. If you want toconvert them into boolean, for example, you should use the:func:`paste.deploy.converters.asbool` function, as in::from paste.deploy.converters import asboolsetting = asbool(global_conf.get('the_setting'))"""from tg.configuration import AppConfigimport wiki20from wiki20 import modelfrom wiki20.lib import app_globals, helpersbase_config = AppConfig()base_config.renderers = []base_config.package = wiki20#Set the default rendererbase_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 Setupbase_config.use_sqlalchemy = Truebase_config.model = wiki20.modelbase_config.DBSession = wiki20.model.DBSession