aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/submit/views.py
diff options
context:
space:
mode:
authorChristopher Allan Webber <cwebber@dustycloud.org>2011-08-11 11:30:26 -0500
committerChristopher Allan Webber <cwebber@dustycloud.org>2011-08-11 11:30:26 -0500
commit07934b442f7cd3abae18eecdf533de004f88e6b1 (patch)
tree18911ea484ceaa627c3ca56dd656ab844e13c1c9 /mediagoblin/submit/views.py
parent1b57c2908299111e571f6ac528291dd93a112b1b (diff)
downloadmediagoblin-07934b442f7cd3abae18eecdf533de004f88e6b1.tar.lz
mediagoblin-07934b442f7cd3abae18eecdf533de004f88e6b1.tar.xz
mediagoblin-07934b442f7cd3abae18eecdf533de004f88e6b1.zip
Moving things around a bit/commenting in the submit view to make the workflow clearer
Diffstat (limited to 'mediagoblin/submit/views.py')
-rw-r--r--mediagoblin/submit/views.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/mediagoblin/submit/views.py b/mediagoblin/submit/views.py
index d4858c87..1e8c6a68 100644
--- a/mediagoblin/submit/views.py
+++ b/mediagoblin/submit/views.py
@@ -87,9 +87,13 @@ def submit_start(request):
# Add queued filename to the entry
entry['queued_media_file'] = queue_filepath
- # queue it for processing
+ # Save now so we have this data before kicking off processing
+ entry.save(validate=False)
+
result = process_media_initial.delay(unicode(entry['_id']))
- entry['queued_task_id'] = result.task_id
+
+ # Save the task id
+ entry['queued_task_id'] = unicode(result.task_id)
entry.save(validate=True)
add_message(request, SUCCESS, _('Woohoo! Submitted!'))