Fix media manager reference in video.
authorElrond <elrond+mediagoblin.org@samba-tng.org>
Tue, 30 Apr 2013 21:44:56 +0000 (23:44 +0200)
committerElrond <elrond+mediagoblin.org@samba-tng.org>
Tue, 30 Apr 2013 21:44:56 +0000 (23:44 +0200)
An uninstantiated bare media manager doesn't any more
support ["something"]. You need to do .something.
Fixed for .source_type().

mediagoblin/media_types/video/models.py

index f696a8927de1d225bf4e2e9f4771d5630a3d0abd..0b52c53f326c13623b9d98227333dd4c2c9f4ed8 100644 (file)
@@ -90,7 +90,7 @@ class VideoData(Base):
             return '%s; codecs="%s, %s"' % (
                 mimetype, video_codec, audio_codec)
         else:
-            return video.MEDIA_MANAGER["default_webm_type"]
+            return video.VideoMediaManager.default_webm_type
 
 
 DATA_MODEL = VideoData