Changeset 96 for branches/0.2.1.x/pysvnmanager/config/environment.py
- Timestamp:
- 2009年08月23日 15时40分34秒 (3 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
branches/0.2.1.x/pysvnmanager/config/environment.py
r55 r96 1 1 """Pylons environment configuration""" 2 # -*- coding: utf-8 -*-3 2 import os 4 3 5 from mako.lookup import TemplateLookup6 4 from pylons import config 7 5 … … 22 20 23 21 # Initialize config with the basic options 24 config.init_app(global_conf, app_conf, package='pysvnmanager', paths=paths) 22 config.init_app(global_conf, app_conf, package='pysvnmanager', 23 template_engine='mako', paths=paths) 25 24 26 25 config['routes.map'] = make_map() 27 config['pylons. app_globals'] = app_globals.Globals()26 config['pylons.g'] = app_globals.Globals() 28 27 config['pylons.h'] = pysvnmanager.lib.helpers 29 28 30 # Create the Mako TemplateLookup, with the default auto-escaping 31 config['pylons.app_globals'].mako_lookup = TemplateLookup( 32 directories=paths['templates'], 33 module_directory=os.path.join(app_conf['cache_dir'], 'templates'), 34 input_encoding='utf-8', output_encoding='utf-8', 35 imports=['from webhelpers.html import escape'], 36 ) 37 #default_filters=['escape']) 38 29 # Customize templating options via this variable 30 tmpl_options = config['buffet.template_options'] 31 39 32 # CONFIGURATION OPTIONS HERE (note: all config options will override 40 33 # any Pylons config options)
![(please configure the [header_logo] section in trac.ini)](/trac/pysvnmanager/chrome/common/trac_banner.png)