from django.conf.urls import patterns, url from . import views urlpatterns = patterns( '', url(r'^$', views.MotionListView.as_view(), name='motion_list'), url(r'^new/$', views.MotionCreateView.as_view(), name='motion_create'), url(r'^(?P\d+)/$', views.MotionDetailView.as_view(), name='motion_detail'), url(r'^(?P\d+)/edit/$', views.MotionUpdateView.as_view(), name='motion_update'), url(r'^(?P\d+)/del/$', views.MotionDeleteView.as_view(), name='motion_delete'), url(r'^(?P\d+)/new_amendment/$', views.MotionCreateAmendmentView.as_view(), name='motion_create_amendment'), url(r'^(?P\d+)/version/(?P\d+)/$', views.MotionDetailView.as_view(), name='motion_version_detail'), url(r'^(?P\d+)/version/(?P\d+)/permit/$', views.VersionPermitView.as_view(), name='motion_version_permit'), url(r'^(?P\d+)/version/(?P\d+)/del/$', views.VersionDeleteView.as_view(), name='motion_version_delete'), url(r'^(?P\d+)/diff/$', views.VersionDiffView.as_view(), name='motion_version_diff'), url(r'^(?P\d+)/support/$', views.SupportView.as_view(support=True), name='motion_support'), url(r'^(?P\d+)/unsupport/$', views.SupportView.as_view(support=False), name='motion_unsupport'), url(r'^(?P\d+)/create_poll/$', views.PollCreateView.as_view(), name='motionpoll_create'), url(r'^(?P\d+)/poll/(?P\d+)/edit/$', views.PollUpdateView.as_view(), name='motionpoll_update'), url(r'^(?P\d+)/poll/(?P\d+)/del/$', views.PollDeleteView.as_view(), name='motionpoll_delete'), url(r'^(?P\d+)/poll/(?P\d+)/pdf/$', views.PollPDFView.as_view(), name='motionpoll_pdf'), url(r'^(?P\d+)/set_state/(?P\d+)/$', views.MotionSetStateView.as_view(), name='motion_set_state'), url(r'^(?P\d+)/reset_state/$', views.MotionSetStateView.as_view(reset=True), name='motion_reset_state'), url(r'^(?P\d+)/agenda/$', views.CreateRelatedAgendaItemView.as_view(), name='motion_create_agenda'), url(r'^pdf/$', views.MotionPDFView.as_view(print_all_motions=True), name='motion_list_pdf'), url(r'^(?P\d+)/pdf/$', views.MotionPDFView.as_view(print_all_motions=False), name='motion_detail_pdf'), url(r'^category/$', views.CategoryListView.as_view(), name='motion_category_list'), url(r'^category/new/$', views.CategoryCreateView.as_view(), name='motion_category_create'), url(r'^category/(?P\d+)/edit/$', views.CategoryUpdateView.as_view(), name='motion_category_update'), url(r'^category/(?P\d+)/del/$', views.CategoryDeleteView.as_view(), name='motion_category_delete'), url(r'^csv_import/$', views.MotionCSVImportView.as_view(), name='motion_csv_import'), )