aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin
diff options
context:
space:
mode:
authorChristopher Allan Webber <cwebber@dustycloud.org>2011-04-17 16:36:01 -0500
committerChristopher Allan Webber <cwebber@dustycloud.org>2011-04-17 16:36:01 -0500
commit0dd659459654dcaa683170e032ba493ab793d016 (patch)
tree71d2bc431dcac896d956d2279f61962813bd4ba2 /mediagoblin
parent582c4d5fb21f8584314d1ff6a81931e467ec7a04 (diff)
downloadmediagoblin-0dd659459654dcaa683170e032ba493ab793d016.tar.lz
mediagoblin-0dd659459654dcaa683170e032ba493ab793d016.tar.xz
mediagoblin-0dd659459654dcaa683170e032ba493ab793d016.zip
Move the request.app stuff to the same area
Diffstat (limited to 'mediagoblin')
-rw-r--r--mediagoblin/app.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/mediagoblin/app.py b/mediagoblin/app.py
index 5171da99..0157748c 100644
--- a/mediagoblin/app.py
+++ b/mediagoblin/app.py
@@ -82,14 +82,16 @@ class MediaGoblinApp(object):
## Attach utilities to the request object
request.matchdict = route_match
- request.app = self
- request.template_env = self.template_env
request.urlgen = routes.URLGenerator(self.routing, environ)
- request.db = self.db
- request.staticdirect = self.staticdirector
# Do we really want to load this via middleware? Maybe?
request.session = request.environ['beaker.session']
util.setup_user_in_request(request)
+ # Attach self as request.app
+ # Also attach a few utilities from request.app for convenience?
+ request.app = self
+ request.template_env = self.template_env
+ request.db = self.db
+ request.staticdirect = self.staticdirector
return controller(request)(environ, start_response)