diff options
author | Christopher Allan Webber <cwebber@dustycloud.org> | 2013-07-12 17:04:08 -0500 |
---|---|---|
committer | Christopher Allan Webber <cwebber@dustycloud.org> | 2013-07-12 17:04:08 -0500 |
commit | 6403bc928bbdd916248775580d1bfa90c511f2dc (patch) | |
tree | be54a57b740158e92ecc79840a74d9f283a82e4f /mediagoblin/db/mixin.py | |
parent | 91bee92e8ef188e4a5aa191b6c047a57a668f5fa (diff) | |
download | mediagoblin-6403bc928bbdd916248775580d1bfa90c511f2dc.tar.lz mediagoblin-6403bc928bbdd916248775580d1bfa90c511f2dc.tar.xz mediagoblin-6403bc928bbdd916248775580d1bfa90c511f2dc.zip |
Switching the hook 'get_media_manager' to a more "directed" tuple-hook
By switching this to a tuple that includes the media type in the key
itself, this requires iteration and execution of functions that
"check" that they are the right type.
This commit sponsored by Greg Grossmeier. Thanks buddy! :)
Diffstat (limited to 'mediagoblin/db/mixin.py')
-rw-r--r-- | mediagoblin/db/mixin.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mediagoblin/db/mixin.py b/mediagoblin/db/mixin.py index ee8525c2..57b27d83 100644 --- a/mediagoblin/db/mixin.py +++ b/mediagoblin/db/mixin.py @@ -203,7 +203,7 @@ class MediaEntryMixin(GenerateSlugMixin): Raises FileTypeNotSupported in case no such manager is enabled """ - manager = hook_handle('get_media_manager', self.media_type) + manager = hook_handle(('media_manager', self.media_type)) if manager: return manager(self) |