datatracker/ietf/idindex/urls.py
Bill Fenner 7fec55b633 Initial implementation of view_related. The related_docs() function
is still a work in progress.  I've been using
draft-ietf-dnsext-dnssec-protocol as a test case; related_docs()
returns the same 137 documents as the cgi code but some of the
relationships are different.  Right now, the skip argument is
ignored.
 - Legacy-Id: 246
2007-06-06 02:14:29 +00:00

30 lines
1.3 KiB
Python

from django.conf.urls.defaults import patterns
from ietf.idtracker.models import InternetDraft
from ietf.idindex import views
from ietf.idindex.views import alphabet, orgs
info_dict = {
'queryset': InternetDraft.objects.all(),
'template_name': 'idindex/internetdraft_detail.html',
'extra_context': {
'alphabet': alphabet,
'orgs': orgs,
}
}
urlpatterns = patterns('',
(r'^wgdocs/(?P<id>\d+)/$', views.wgdocs),
(r'^wgdocs/(?P<slug>[^/]+)/$', views.wgdocs),
(r'^wglist/(?P<wg>[^/]+)/$', views.wglist),
(r'^inddocs/(?P<filter>[^/]+)/$', views.inddocs),
(r'^otherdocs/(?P<cat>[^/]+)/$', views.otherdocs),
(r'^showdocs/(?P<cat>[^/]+)/((?P<sortby>[^/]+)/)?$', views.showdocs),
(r'^(?P<id>\d+)/view_related_docs/$', views.view_related_docs),
(r'^(?P<slug>[^/]+)/view_related_docs/$', views.view_related_docs),
(r'^(?P<object_id>\d+)/$', 'django.views.generic.list_detail.object_detail', info_dict),
(r'^(?P<slug>[^/]+)/$', 'django.views.generic.list_detail.object_detail', dict(info_dict, slug_field='filename')),
(r'^all_id_txt.html$', views.all_id, { 'template_name': 'idindex/all_id_txt.html' }),
(r'^all_id.html$', views.all_id, { 'template_name': 'idindex/all_id.html' }),
(r'^$', views.search),
)