]> git.ozlabs.org Git - patchwork/blobdiff - apps/patchwork/views/bundle.py
Make pwclient visible thorugh site, and add .pwclientrc infrastructure
[patchwork] / apps / patchwork / views / bundle.py
index be6a937f6e6b0a420c25b51ac965d0cbc1e81817..d8c868eee64ac5bdc2b8a041ae213de42133c9a7 100644 (file)
@@ -135,6 +135,8 @@ def bundle(request, bundle_id):
 def mbox(request, bundle_id):
     bundle = get_object_or_404(Bundle, id = bundle_id)
     response = HttpResponse(mimetype='text/plain')
+    response['Content-Disposition'] = 'attachment; filename=bundle-%d.mbox' % \
+           bundle.id
     response.write(bundle.mbox())
     return response
 
@@ -151,8 +153,3 @@ def public(request, username, bundlename):
     context.update({'bundle': bundle,
             'user': user});
     return render_to_response('patchwork/bundle-public.html', context)
-
-@login_required
-def set_patches(request):
-    context = PatchworkRequestContext(request)
-