Skip to content

Commit

Permalink
Add renderer global 'r' as alias for 'request'.
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeorr committed Jan 25, 2012
1 parent 6cad1e6 commit fb9999b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions akhet/demo/subscribers.py
Expand Up @@ -30,6 +30,7 @@ def add_renderer_globals(event):
request = event.get("request") or threadlocal.get_current_request()
if not request:
return
renderer_globals["r"] = request
#renderer_globals["c"] = request.tmpl_context
#try:
# renderer_globals["session"] = request.session
Expand Down

0 comments on commit fb9999b

Please sign in to comment.