diff --git a/ietf/meeting/urls.py b/ietf/meeting/urls.py index 8feab5090..e71c7a600 100644 --- a/ietf/meeting/urls.py +++ b/ietf/meeting/urls.py @@ -59,6 +59,13 @@ type_ietf_only_patterns = [ url(r'^json$', ajax.meeting_json), ] +# This is a limited subset of the list above -- many of the views above won't work for interim meetings +type_interim_patterns = [ + url(r'^agenda/(?P[A-Za-z0-9-]+)-drafts.pdf$', views.session_draft_pdf), + url(r'^agenda/(?P[A-Za-z0-9-]+)-drafts.tgz$', views.session_draft_tarfile), + url(r'^agenda/(?P[A-Za-z0-9-]+)/?$', views.session_agenda), +] + type_ietf_only_patterns_id_optional = [ url(r'^agenda(?P-utc)?(?P.html)?/?$', views.agenda), url(r'^agenda(?P.txt)$', views.agenda), @@ -101,7 +108,7 @@ urlpatterns = [ url(r'^upcoming/?$', views.upcoming), url(r'^upcoming.ics/?$', views.upcoming_ical), # Then patterns from more specific to less - url(r'^(?Pinterim-[a-z0-9-]+)/', include(type_ietf_only_patterns)), + url(r'^(?Pinterim-[a-z0-9-]+)/', include(type_interim_patterns)), url(r'^(?P\d+)/requests.html$', RedirectView.as_view(url='/meeting/%(num)s/requests', permanent=True)), # The optionals have to go first of these two, otherwise the agenda/(owner)/(name)/ patterns match things they shouldn't url(r'^(?:(?P\d+)/)?', include(type_ietf_only_patterns_id_optional)),