#!/usr/bin/env python # -*- coding: utf-8 -*- """ openslides.motion.urls ~~~~~~~~~~~~~~~~~~~~~~ Defines the URL patterns for the motion app. :copyright: (c) 2011-2013 by the OpenSlides team, see AUTHORS. :license: GNU GPL, see LICENSE for more details. """ from django.conf.urls import url, patterns urlpatterns = patterns('openslides.motion.views', url(r'^$', 'motion_list', name='motion_list', ), url(r'^create/$', 'motion_create', name='motion_new', ), url(r'^(?P\d+)/$', 'motion_detail', name='motion_detail', ), url(r'^(?P\d+)/edit/$', 'motion_edit', name='motion_edit', ), url(r'^(?P\d+)/del/$', 'motion_delete', name='motion_delete', ), url(r'^(?P\d+)/version/(?P\d+)/$', 'motion_detail', name='motion_version_detail', ), url(r'^(?P\d+)/version/(?P\d+)/permit/$', 'version_permit', name='motion_version_permit', ), url(r'^(?P\d+)/version/(?P\d+)/reject/$', 'version_reject', name='motion_version_reject', ), url(r'^(?P\d+)/support/$', 'motion_support', name='motion_support', ), url(r'^(?P\d+)/unsupport/$', 'motion_unsupport', name='motion_unsupport', ), url(r'^(?P\d+)/create_poll/$', 'poll_create', name='motion_poll_create', ), url(r'^(?P\d+)/poll/(?P\d+)/edit/$', 'poll_edit', name='motion_poll_edit', ), url(r'^(?P\d+)/poll/(?P\d+)/del/$', 'poll_delete', name='motion_poll_delete', ), url(r'^(?P\d+)/set_state/(?P[a-z]{3})/$', 'set_state', name='motion_set_state', ), url(r'^(?P\d+)/reset_state/$', 'reset_state', name='motion_reset_state', ), url(r'^(?P\d+)/agenda/$', 'create_agenda_item', name='motion_create_agenda', ), url(r'^pdf/$', 'motion_list_pdf', name='motion_list_pdf', ), url(r'^(?P\d+)/pdf/$', 'motion_detail_pdf', name='motion_detail_pdf', ), )