aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/submit/views.py
diff options
context:
space:
mode:
authorSebastian Spaeth <Sebastian@SSpaeth.de>2013-01-15 15:03:00 +0100
committerSebastian Spaeth <Sebastian@SSpaeth.de>2013-01-15 15:03:00 +0100
commitc7b3d070b65a84e3bfa9d8e3e6f52aac6552910f (patch)
tree0895ba63b15612c0da97e5eebe3fa83d73174219 /mediagoblin/submit/views.py
parent2cfffd5ed8c054bb60c27ede4e69667f97d12b09 (diff)
downloadmediagoblin-c7b3d070b65a84e3bfa9d8e3e6f52aac6552910f.tar.lz
mediagoblin-c7b3d070b65a84e3bfa9d8e3e6f52aac6552910f.tar.xz
mediagoblin-c7b3d070b65a84e3bfa9d8e3e6f52aac6552910f.zip
Don't pass request into run_process_media
People(tm) want to start run_process_media from the CLI and might not have a request object handy. So pass in the feed_url into run_process_media rather than the request object and allow the feed url to be empty (resulting in no PuSH notification at all then). Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
Diffstat (limited to 'mediagoblin/submit/views.py')
-rw-r--r--mediagoblin/submit/views.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/mediagoblin/submit/views.py b/mediagoblin/submit/views.py
index 145b9f5e..49ab4230 100644
--- a/mediagoblin/submit/views.py
+++ b/mediagoblin/submit/views.py
@@ -89,7 +89,10 @@ def submit_start(request):
#
# (... don't change entry after this point to avoid race
# conditions with changes to the document via processing code)
- run_process_media(entry, request)
+ feed_url = request.urlgen(
+ 'mediagoblin.user_pages.atom_feed',
+ qualified=True, user=request.user.username)
+ run_process_media(entry, feed_url)
add_message(request, SUCCESS, _('Woohoo! Submitted!'))
return redirect(request, "mediagoblin.user_pages.user_home",