class MediaEntry(Document):
+ __collection__ = 'media_entries'
+
structure = {
'title': unicode,
'created': datetime.datetime,
'media_data': dict, # extra data relevant to this media_type
'plugin_data': dict, # plugins can dump stuff here.
'file_store': unicode,
- 'tags': Set(unicode)}
+ 'attachments': [dict],
+ 'tags': [unicode]}
required_fields = [
'title', 'created',
default_values = {
'created': datetime.datetime.utcnow}
-
+
+ def main_mediafile(self):
+ pass
class User(Document):
structure = {