diff options
author | Aurélien Bompard <aurelien@bompard.org> | 2012-10-22 15:50:22 +0200 |
---|---|---|
committer | Aurélien Bompard <aurelien@bompard.org> | 2012-10-22 15:50:22 +0200 |
commit | ec83ca078f90a2f5ede73ffa2666d7653b5c1d56 (patch) | |
tree | 0236c55618b4d8f6f077866e5b7f91b40c41840f /hyperkitty/urls.py | |
parent | dfa93dee5d6765ca85d7b333cc995108dd2c17d6 (diff) | |
download | hyperkitty-ec83ca078f90a2f5ede73ffa2666d7653b5c1d56.tar.gz hyperkitty-ec83ca078f90a2f5ede73ffa2666d7653b5c1d56.tar.xz hyperkitty-ec83ca078f90a2f5ede73ffa2666d7653b5c1d56.zip |
Add compatibility URLs for Pipermail
Diffstat (limited to 'hyperkitty/urls.py')
-rw-r--r-- | hyperkitty/urls.py | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/hyperkitty/urls.py b/hyperkitty/urls.py index bc52699..ab2719e 100644 --- a/hyperkitty/urls.py +++ b/hyperkitty/urls.py @@ -57,7 +57,6 @@ urlpatterns = patterns('hyperkitty.views', ### MESSAGE LEVEL VIEWS ### - # Vote a message url(r'^message/(?P<mlist_fqdn>.*@.*)/(?P<hashid>\w+)/$', 'message.index', name='message_index'), @@ -68,7 +67,7 @@ urlpatterns = patterns('hyperkitty.views', 'message.vote', name='message_vote'), ### MESSAGE LEVEL VIEW ENDS ### - + ### THREAD LEVEL VIEWS ### # Thread view page @@ -80,7 +79,7 @@ urlpatterns = patterns('hyperkitty.views', 'thread.add_tag', name='add_tag'), ### THREAD LEVEL VIEW ENDS ### - + # REST API url(r'^api/$', 'api.api'), url(r'^api/email\/(?P<mlist_fqdn>.*@.*)\/(?P<hashid>.*)/', @@ -93,7 +92,7 @@ urlpatterns = patterns('hyperkitty.views', # Uncomment the admin/doc line below to enable admin documentation: # url(r'^admin/doc/', include('django.contrib.admindocs.urls')), - # Admin + # Admin url(r'^admin/', include(admin.site.urls)), # Robots.txt @@ -103,6 +102,15 @@ urlpatterns = patterns('hyperkitty.views', # Social Auth url(r'', include('social_auth.urls')), + # Mailman 2.X compatibility + url(r'^listinfo/?$', 'compat.summary'), + url(r'^listinfo/(?P<list_name>[^/]+)/?$', 'compat.summary'), + url(r'^pipermail/(?P<list_name>[^/]+)/?$', 'compat.summary'), + url(r'^pipermail/(?P<list_name>[^/]+)/(?P<year>\d\d\d\d)-(?P<month_name>\w+)/?$', 'compat.arch_month'), + url(r'^pipermail/(?P<list_name>[^/]+)/(?P<year>\d\d\d\d)-(?P<month_name>\w+)/(?P<summary_type>[a-z]+)\.html$', 'compat.arch_month'), + url(r'^pipermail/(?P<list_name>[^/]+)/(?P<year>\d\d\d\d)-(?P<month_name>\w+)\.txt.gz', 'compat.arch_month_mbox'), + url(r'^pipermail/(?P<list_name>[^/]+)/(?P<year>\d\d\d\d)-(?P<month_name>\w+)/(?P<msg_num>\d+)\.html$', 'compat.message'), + ) #) + static(settings.STATIC_URL, document_root=settings.STATIC_ROOT) urlpatterns += staticfiles_urlpatterns() |