diff options
author | Christopher Allan Webber <cwebber@dustycloud.org> | 2011-08-13 07:48:34 -0500 |
---|---|---|
committer | Christopher Allan Webber <cwebber@dustycloud.org> | 2011-08-13 07:48:34 -0500 |
commit | 6c50c2106816c920ef404dea641a8eac8c5914eb (patch) | |
tree | cab8f287af3020558808cc25ee1c7aecbb1d21b6 /mediagoblin/db/models.py | |
parent | 4b860cb823fd160742ab050f481eb65e389f9a7b (diff) | |
download | mediagoblin-6c50c2106816c920ef404dea641a8eac8c5914eb.tar.lz mediagoblin-6c50c2106816c920ef404dea641a8eac8c5914eb.tar.xz mediagoblin-6c50c2106816c920ef404dea641a8eac8c5914eb.zip |
Add fail_error and fail_metadata fields to MediaEntry and relevant migration
Diffstat (limited to 'mediagoblin/db/models.py')
-rw-r--r-- | mediagoblin/db/models.py | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/mediagoblin/db/models.py b/mediagoblin/db/models.py index 0dcb6ce8..982883d7 100644 --- a/mediagoblin/db/models.py +++ b/mediagoblin/db/models.py @@ -171,6 +171,9 @@ class MediaEntry(Document): - attachment_files: A list of "attachment" files, ones that aren't critical to this piece of media but may be usefully relevant to people viewing the work. (currently unused.) + + - fail_error: path to the exception raised + - fail_metadata: """ __collection__ = 'media_entries' @@ -197,7 +200,12 @@ class MediaEntry(Document): # The following should be lists of lists, in appropriate file # record form - 'attachment_files': list} + 'attachment_files': list, + + # If things go badly in processing things, we'll store that + # data here + 'fail_error': unicode, + 'fail_metadata': dict} required_fields = [ 'uploader', 'created', 'media_type', 'slug'] |