You're right. Thanks for pointing it out.
I Should have read the Pyramid doc more carefully.
Evan
2011/12/1 Michael Merickel
> The fact that "request" is exposed is part of Pyramid. Any renderer hooked
> up to pyramid will have at least 2 globals "request", "context". There are
> also some othe
The fact that "request" is exposed is part of Pyramid. Any renderer hooked
up to pyramid will have at least 2 globals "request", "context". There are
also some others and it's all documented here:
http://docs.pylonsproject.org/projects/pyramid/en/1.2-branch/narr/renderers.html#adding-a-new-rendere
Michael,
yes. i'm using pyramid_jinja2. and your advice works like a charm. thanks
however i dig into the pyramid_jinja2 docs again to figure out whether i missed
sth. but still i could not find anything talking about 'request is exposed in
the template'
so… is there another place where i can ge
Sorry, is this a question about jinja2? If so there's another mailing list
for that.
If you are asking about pyramid_jinja2, for use in conjunction with pyramid
then the request is already exposed in the template, so you can simply do
"request.session['mykey']" to deal with the session.
On Wed, N