diff --git a/tests/base.py b/tests/base.py index e4197243..60246fc5 100644 --- a/tests/base.py +++ b/tests/base.py @@ -58,7 +58,7 @@ def teardown_session_dir(): 'pylons.request_options': pylons.configuration.request_defaults.copy(), 'pylons.response_options': pylons.configuration.response_defaults.copy(), 'pylons.strict_c': False, - 'pylons.stritmpl_contextt_tmpl_context':False, + 'pylons.strict_tmpl_context':False, 'pylons.c_attach_args': True, 'pylons.tmpl_context_attach_args': True, 'buffet.template_engines': [], diff --git a/tg/configuration.py b/tg/configuration.py index 9597a731..e64ae81e 100644 --- a/tg/configuration.py +++ b/tg/configuration.py @@ -220,7 +220,6 @@ def init_config(self, global_conf, app_conf): warnings.simplefilter("ignore") config['pylons.strict_tmpl_context'] = True warnings.resetwarnings() - config['pylons.stritmpl_contextt_tmpl_context'] = True else: config['pylons.strict_tmpl_context'] = False self.after_init_config() @@ -230,14 +229,14 @@ def after_init_config(self): Override this method to set up configuration variables at the application level. This method will be called after your configuration object has been initialized on startup. Here is how you would use it to override - the default setting of pylons.stritmpl_contextt_tmpl_context :: + the default setting of pylons.strict_tmpl_context :: from tg.configuration import AppConfig from pylons import config class MyAppConfig(AppConfig): def after_init_config(self): - config['pylons.stritmpl_contextt_tmpl_context'] = False + config['pylons.strict_tmpl_context'] = False base_config = MyAppConfig() @@ -456,7 +455,7 @@ def setup_jinja_renderer(self): warnings.simplefilter("ignore") config['pylons.strict_c'] = True warnings.resetwarnings() - config['pylons.stritmpl_contextt_tmpl_context'] = True + config['pylons.strict_tmpl_context'] = True self.render_functions.jinja = render_jinja