It's a good idea for us to pass the application itself into mg_globals :)
authorChristopher Allan Webber <cwebber@dustycloud.org>
Sun, 19 Jun 2011 00:00:01 +0000 (19:00 -0500)
committerChristopher Allan Webber <cwebber@dustycloud.org>
Sun, 19 Jun 2011 00:00:01 +0000 (19:00 -0500)
mediagoblin/app.py

index da1aba478b33efbaca2708f9d6638ec78670bf6c..d2a0695ebdfee555248a736d022ee84313467656 100644 (file)
@@ -125,6 +125,7 @@ class MediaGoblinApp(object):
             email_debug_mode=app_config['email_debug_mode'],
 
             # Actual, useful to everyone objects
+            app=self,
             db_connection=self.connection,
             database=self.db,
             public_store=self.public_store,