pyramid: expose a temporary TemplateContext under _c
This commit is contained in:
parent
7add053ff8
commit
01618e7be5
1 changed files with 4 additions and 0 deletions
|
|
@ -137,6 +137,10 @@ class BaseAppView(object):
|
|||
local_tmpl_args = {
|
||||
'defaults': {},
|
||||
'errors': {},
|
||||
# register a fake 'c' to be used in templates instead of global
|
||||
# pylons c, after migration to pyramid we should rename it to 'c'
|
||||
# make sure we replace usage of _c in templates too
|
||||
'_c': tmpl_args
|
||||
}
|
||||
local_tmpl_args.update(tmpl_args)
|
||||
return local_tmpl_args
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue