summaryrefslogtreecommitdiff
path: root/patchwork/urls.py
diff options
context:
space:
mode:
authorStephen Finucane <stephen@that.guru>2017-02-06 12:36:27 +0000
committerStephen Finucane <stephen@that.guru>2017-04-04 16:24:07 +0100
commit6deedfb7a7125eade8d6a84c8dfec89c08f54338 (patch)
tree1840aad1923d8da20636d97e384233b3716d3b37 /patchwork/urls.py
parente2dfd490d1250ae7cba58377903b2bcba082e75d (diff)
downloadpatchwork-6deedfb7a7125eade8d6a84c8dfec89c08f54338.tar
patchwork-6deedfb7a7125eade8d6a84c8dfec89c08f54338.tar.gz
views: Expose Series mbox
It is possible to download a patch mbox with all dependencies. Now make it possible to download the entire series. This takes the form of the following URL when using the default routes: /series/{seriesID}/mbox/ Like the equivalent patch and bundle links, this will return a 404 if '{seriesID}' does not match an existing series' ID. However, a 404 will also be returned in the series is not complete, as indicated by Series.total > Series.received_total. You can override this behavior by providing the 'force' parameter: /series/{seriesID}/mbox/?force=1 Note that there are no current plans to provide a series-specific view, a.k.a. /series/{seriesID}/ As a result, this particular URL will continue to return a 404. Signed-off-by: Stephen Finucane <stephen@that.guru> Reviewed-by: Daniel Axtens <dja@axtens.net>
Diffstat (limited to 'patchwork/urls.py')
-rw-r--r--patchwork/urls.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/patchwork/urls.py b/patchwork/urls.py
index 34e6e60..e888386 100644
--- a/patchwork/urls.py
+++ b/patchwork/urls.py
@@ -32,6 +32,7 @@ from patchwork.views import notification as notification_views
from patchwork.views import patch as patch_views
from patchwork.views import project as project_views
from patchwork.views import pwclient as pwclient_views
+from patchwork.views import series as series_views
from patchwork.views import user as user_views
from patchwork.views import xmlrpc as xmlrpc_views
@@ -61,10 +62,14 @@ urlpatterns = [
url(r'^cover/(?P<cover_id>\d+)/$', cover_views.cover_detail,
name='cover-detail'),
- # comment urls
+ # comment views
url(r'^comment/(?P<comment_id>\d+)/$', comment_views.comment,
name='comment-redirect'),
+ # series views
+ url(r'^series/(?P<series_id>\d+)/mbox/$', series_views.series_mbox,
+ name='series-mbox'),
+
# logged-in user stuff
url(r'^user/$', user_views.profile, name='user-profile'),
url(r'^user/todo/$', user_views.todo_lists,