# Copyright The IETF Trust 2007, All Rights Reserved from django.conf.urls import patterns, url from django.views.generic import RedirectView from django.core.urlresolvers import reverse_lazy urlpatterns = patterns('ietf.ipr.views', url(r'^$', 'showlist', name='ipr_showlist'), (r'^about/$', 'about'), url(r'^admin/$', RedirectView.as_view(url=reverse_lazy('ipr_admin',kwargs={'state':'pending'})),name="ipr_admin_main"), url(r'^admin/(?Ppending|removed|parked)/$', 'admin', name='ipr_admin'), url(r'^ajax/search/$', 'ajax_search', name='ipr_ajax_search'), (r'^by-draft/$', 'iprs_for_drafts_txt'), url(r'^(?P\d+)/$', 'show', name='ipr_show'), url(r'^(?P\d+)/addcomment/$', 'add_comment', name='ipr_add_comment'), url(r'^(?P\d+)/addemail/$', 'add_email', name='ipr_add_email'), url(r'^(?P\d+)/edit/$', 'edit', name='ipr_edit'), url(r'^(?P\d+)/email/$', 'email', name='ipr_email'), url(r'^(?P\d+)/history/$', 'history', name='ipr_history'), url(r'^(?P\d+)/notify/(?Pupdate|posted)/$', 'notify', name='ipr_notify'), url(r'^(?P\d+)/post/$', 'post', name='ipr_post'), url(r'^(?P\d+)/state/$', 'state', name='ipr_state'), (r'^update/$', RedirectView.as_view(url=reverse_lazy('ipr_showlist'))), url(r'^update/(?P\d+)/$', 'update', name='ipr_update'), url(r'^new-(?P(specific|generic|third-party))/$', 'new', name='ipr_new'), url(r'^search/$', 'search', name="ipr_search"), )