Attach the MediaGoblinApp to the engine, and provide a way for models to access
authorChristopher Allan Webber <cwebber@dustycloud.org>
Wed, 3 Dec 2014 19:13:58 +0000 (13:13 -0600)
committerChristopher Allan Webber <cwebber@dustycloud.org>
Wed, 3 Dec 2014 21:40:58 +0000 (15:40 -0600)
commit7c563e91bf66b0c01dfceb65c614b0da84ed91c3
tree9002b481acd2df89297d8e48000a84ea885879d4
parent5e5ea4a3e97c14c377b7f2a82dc7d2558c14dcee
Attach the MediaGoblinApp to the engine, and provide a way for models to access

This allows SQLAlchemy models to gain access to app-level configuration
without the need for global variables.

This commit sponsored by Peter Hogg.  Thank you, Peter!
mediagoblin/app.py
mediagoblin/db/base.py
mediagoblin/db/open.py
mediagoblin/init/__init__.py