Use mediagoblin import machinery
authorSebastian Spaeth <Sebastian@SSpaeth.de>
Fri, 30 Nov 2012 13:25:26 +0000 (14:25 +0100)
committerSebastian Spaeth <Sebastian@SSpaeth.de>
Fri, 30 Nov 2012 13:25:26 +0000 (14:25 +0100)
commitdf1c497609fd47379d4a4bd36af4f3db2f722d3d
tree38837fb12d4b21a9b0799748559104f987550805
parent27886480abc83b52ce43b0c4637c6878700fbb0e
Use mediagoblin import machinery

Rather than manually __importing__ the MEDIA_MANAGER, we should have
been using tools.common.import_component in the first place.

But even better to use the existing get_media_manager() function that
exists for exactly our purpose. Also improve documentation of what happens
in case of failure.

Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
mediagoblin/db/mixin.py