diff options
author | Elrond <elrond+mediagoblin.org@samba-tng.org> | 2012-02-18 22:20:32 +0100 |
---|---|---|
committer | Elrond <elrond+mediagoblin.org@samba-tng.org> | 2012-03-03 00:16:44 +0100 |
commit | 5fe1fd072226b0d0ba010529e9ab20b5d227d604 (patch) | |
tree | 30fa27358dd120de46434c35bc74452d2790e558 | |
parent | 5ff575827b5f53a6a5e8126cbcc5a66fde005786 (diff) | |
download | mediagoblin-5fe1fd072226b0d0ba010529e9ab20b5d227d604.tar.lz mediagoblin-5fe1fd072226b0d0ba010529e9ab20b5d227d604.tar.xz mediagoblin-5fe1fd072226b0d0ba010529e9ab20b5d227d604.zip |
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!
-rw-r--r-- | mediagoblin/db/sql/models.py | 5 |
1 files changed, 5 insertions, 0 deletions
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): """ |