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!
This commit is contained in:
Elrond 2012-02-18 22:20:32 +01:00
parent 5ff575827b
commit 5fe1fd0722

View File

@ -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):
"""