From 5fe1fd072226b0d0ba010529e9ab20b5d227d604 Mon Sep 17 00:00:00 2001 From: Elrond Date: Sat, 18 Feb 2012 22:20:32 +0100 Subject: [PATCH] Create a fake MediaEntry.media_data for sql So that the SQL backend is more useable, let the MediaEntry have a faked media_data. It's extremely fake: The returned dict is always a new one. So any stored info is even lost! --- mediagoblin/db/sql/models.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/mediagoblin/db/sql/models.py b/mediagoblin/db/sql/models.py index b52eac76..8ae32c63 100644 --- a/mediagoblin/db/sql/models.py +++ b/mediagoblin/db/sql/models.py @@ -167,6 +167,11 @@ class MediaEntry(Base, MediaEntryMixin): if media is not None: return media.url_for_self(urlgen) + @property + def media_data(self): + # TODO: Replace with proper code to read the correct table + return {} + class MediaFile(Base): """ -- 2.25.1