making state for MediaEntry objects, also adding attributes:
- media_files - attachment_files - queue_files - thumbnail_file
This commit is contained in:
parent
7bf3f5db0f
commit
74ae6b112a
@ -70,16 +70,24 @@ class MediaEntry(Document):
|
|||||||
'media_type': unicode,
|
'media_type': unicode,
|
||||||
'media_data': dict, # extra data relevant to this media_type
|
'media_data': dict, # extra data relevant to this media_type
|
||||||
'plugin_data': dict, # plugins can dump stuff here.
|
'plugin_data': dict, # plugins can dump stuff here.
|
||||||
'file_store': unicode,
|
'tags': [unicode],
|
||||||
'attachments': [dict],
|
'state': unicode,
|
||||||
'tags': [unicode]}
|
|
||||||
|
# The following should be lists of lists, in appropriate file
|
||||||
|
# record form
|
||||||
|
'media_files': list,
|
||||||
|
'attachment_files': list,
|
||||||
|
'queue_files': list,
|
||||||
|
|
||||||
|
# This one should just be a single file record
|
||||||
|
'thumbnail_file': [unicode]}
|
||||||
|
|
||||||
required_fields = [
|
required_fields = [
|
||||||
'title', 'created',
|
'uploader', 'title', 'created', 'media_type']
|
||||||
'media_type', 'file_store']
|
|
||||||
|
|
||||||
default_values = {
|
default_values = {
|
||||||
'created': datetime.datetime.utcnow}
|
'created': datetime.datetime.utcnow,
|
||||||
|
'state': u'unprocessed'}
|
||||||
|
|
||||||
def main_mediafile(self):
|
def main_mediafile(self):
|
||||||
pass
|
pass
|
||||||
|
Loading…
x
Reference in New Issue
Block a user