Permalink
Browse files

fix access to request in beforerender event handler

  • Loading branch information...
1 parent 72df840 commit c8e1f9977449ddcfaed7a1e133fd9811c5e829f0 @mcdonc mcdonc committed Jan 5, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 i18n.rst
View
@@ -30,7 +30,7 @@ Then add, a ``subscribers.py`` module to your project's package directory:
def add_renderer_globals(event):
...
- request = event.request
+ request = event['request']
event['_'] = request.translate
event['localizer'] = request.localizer

0 comments on commit c8e1f99

Please sign in to comment.