Show
Ignore:
Timestamp:
2009年08月23日 15时40分34秒 (3 years ago)
Author:
jiangx
Message:

Fixed #28: downgrade pylons framework from 0.9.7 to 0.9.6.2

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/0.2.1.x/pysvnmanager/config/environment.py

    r55 r96  
    11"""Pylons environment configuration""" 
    2 # -*- coding: utf-8 -*- 
    32import os 
    43 
    5 from mako.lookup import TemplateLookup 
    64from pylons import config 
    75 
     
    2220 
    2321    # 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) 
    2524 
    2625    config['routes.map'] = make_map() 
    27     config['pylons.app_globals'] = app_globals.Globals() 
     26    config['pylons.g'] = app_globals.Globals() 
    2827    config['pylons.h'] = pysvnmanager.lib.helpers 
    2928 
    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 
    3932    # CONFIGURATION OPTIONS HERE (note: all config options will override 
    4033    # any Pylons config options)