Skip to content

Commit

Permalink
change random text to what it should have been
Browse files Browse the repository at this point in the history
  • Loading branch information
amol- committed Apr 26, 2011
1 parent 2aac5a7 commit be63f9b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion tests/base.py
Expand Up @@ -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': [],
Expand Down
7 changes: 3 additions & 4 deletions tg/configuration.py
Expand Up @@ -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()
Expand All @@ -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()
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit be63f9b

Please sign in to comment.