summaryrefslogtreecommitdiffstats
path: root/hyperkitty/urls.py
diff options
context:
space:
mode:
authorAurélien Bompard <aurelien@bompard.org>2012-10-02 12:11:40 +0200
committerAurélien Bompard <aurelien@bompard.org>2012-10-02 12:11:40 +0200
commitbc7ab6eb365c8b78a083f3900fbd7304b5c92436 (patch)
treeb64aa422aa8a2f47451c4eaacad61086ecf29ae3 /hyperkitty/urls.py
parentc085839fc5bcc61dca6b94bcfe6a65473f9f2975 (diff)
downloadhyperkitty-bc7ab6eb365c8b78a083f3900fbd7304b5c92436.tar.gz
hyperkitty-bc7ab6eb365c8b78a083f3900fbd7304b5c92436.tar.xz
hyperkitty-bc7ab6eb365c8b78a083f3900fbd7304b5c92436.zip
Add a view to download attachments
Diffstat (limited to 'hyperkitty/urls.py')
-rw-r--r--hyperkitty/urls.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/hyperkitty/urls.py b/hyperkitty/urls.py
index 61779bc..bc52699 100644
--- a/hyperkitty/urls.py
+++ b/hyperkitty/urls.py
@@ -58,9 +58,12 @@ urlpatterns = patterns('hyperkitty.views',
### MESSAGE LEVEL VIEWS ###
# Vote a message
- url(r'^message/(?P<mlist_fqdn>.*@.*)/(?P<hashid>.+)/$',
+ url(r'^message/(?P<mlist_fqdn>.*@.*)/(?P<hashid>\w+)/$',
'message.index', name='message_index'),
+ url(r'^message/(?P<mlist_fqdn>.*@.*)/(?P<hashid>\w+)/attachment/(?P<counter>\d+)/(?P<filename>.+)$',
+ 'message.attachment', name='message_attachment'),
+
url(r'^vote/(?P<mlist_fqdn>.*@.*)/$',
'message.vote', name='message_vote'),
### MESSAGE LEVEL VIEW ENDS ###