2012-10-24 11:04:23 +02:00
|
|
|
|
#!/usr/bin/env python
|
|
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
|
"""
|
|
|
|
|
openslides.motion.urls
|
2013-02-05 18:46:46 +01:00
|
|
|
|
~~~~~~~~~~~~~~~~~~~~~~
|
2012-10-24 11:04:23 +02:00
|
|
|
|
|
2013-02-05 18:46:46 +01:00
|
|
|
|
Defines the URL patterns for the motion app.
|
2012-10-24 11:04:23 +02:00
|
|
|
|
|
2013-03-01 17:13:12 +01:00
|
|
|
|
:copyright: (c) 2011–2013 by the OpenSlides team, see AUTHORS.
|
2012-10-24 11:04:23 +02:00
|
|
|
|
:license: GNU GPL, see LICENSE for more details.
|
|
|
|
|
"""
|
|
|
|
|
|
2013-01-05 01:05:38 +01:00
|
|
|
|
from django.conf.urls import url, patterns
|
2012-10-24 11:04:23 +02:00
|
|
|
|
|
2013-02-06 23:56:21 +01:00
|
|
|
|
|
2012-10-24 11:04:23 +02:00
|
|
|
|
urlpatterns = patterns('openslides.motion.views',
|
|
|
|
|
url(r'^$',
|
2013-01-06 12:07:37 +01:00
|
|
|
|
'motion_list',
|
|
|
|
|
name='motion_list',
|
2012-10-24 11:04:23 +02:00
|
|
|
|
),
|
|
|
|
|
|
2013-03-11 20:17:19 +01:00
|
|
|
|
url(r'^new/$',
|
2013-01-06 12:07:37 +01:00
|
|
|
|
'motion_create',
|
2013-03-11 20:17:19 +01:00
|
|
|
|
# TODO: rename to motion_create
|
2012-10-24 11:04:23 +02:00
|
|
|
|
name='motion_new',
|
|
|
|
|
),
|
|
|
|
|
|
2013-01-06 12:07:37 +01:00
|
|
|
|
url(r'^(?P<pk>\d+)/$',
|
|
|
|
|
'motion_detail',
|
|
|
|
|
name='motion_detail',
|
2012-10-24 11:04:23 +02:00
|
|
|
|
),
|
|
|
|
|
|
2013-01-06 12:07:37 +01:00
|
|
|
|
url(r'^(?P<pk>\d+)/edit/$',
|
|
|
|
|
'motion_edit',
|
2012-10-24 11:04:23 +02:00
|
|
|
|
name='motion_edit',
|
|
|
|
|
),
|
|
|
|
|
|
2013-02-02 00:27:16 +01:00
|
|
|
|
url(r'^(?P<pk>\d+)/del/$',
|
|
|
|
|
'motion_delete',
|
|
|
|
|
name='motion_delete',
|
|
|
|
|
),
|
|
|
|
|
|
2013-02-03 13:24:29 +01:00
|
|
|
|
url(r'^(?P<pk>\d+)/version/(?P<version_number>\d+)/$',
|
2013-01-06 12:07:37 +01:00
|
|
|
|
'motion_detail',
|
|
|
|
|
name='motion_version_detail',
|
2012-10-24 11:04:23 +02:00
|
|
|
|
),
|
2013-01-26 18:18:02 +01:00
|
|
|
|
|
2013-02-03 13:24:29 +01:00
|
|
|
|
url(r'^(?P<pk>\d+)/version/(?P<version_number>\d+)/permit/$',
|
|
|
|
|
'version_permit',
|
|
|
|
|
name='motion_version_permit',
|
|
|
|
|
),
|
|
|
|
|
|
2013-03-14 21:28:03 +01:00
|
|
|
|
url(r'^(?P<pk>\d+)/diff/$',
|
|
|
|
|
'version_diff',
|
|
|
|
|
name='motion_version_diff',
|
|
|
|
|
),
|
|
|
|
|
|
2013-01-26 18:18:02 +01:00
|
|
|
|
url(r'^(?P<pk>\d+)/support/$',
|
|
|
|
|
'motion_support',
|
|
|
|
|
name='motion_support',
|
|
|
|
|
),
|
|
|
|
|
|
|
|
|
|
url(r'^(?P<pk>\d+)/unsupport/$',
|
|
|
|
|
'motion_unsupport',
|
|
|
|
|
name='motion_unsupport',
|
|
|
|
|
),
|
2013-02-01 12:51:54 +01:00
|
|
|
|
|
|
|
|
|
url(r'^(?P<pk>\d+)/create_poll/$',
|
|
|
|
|
'poll_create',
|
|
|
|
|
name='motion_poll_create',
|
|
|
|
|
),
|
|
|
|
|
|
2013-02-01 13:24:44 +01:00
|
|
|
|
url(r'^(?P<pk>\d+)/poll/(?P<poll_number>\d+)/edit/$',
|
2013-02-01 12:51:54 +01:00
|
|
|
|
'poll_edit',
|
|
|
|
|
name='motion_poll_edit',
|
|
|
|
|
),
|
|
|
|
|
|
2013-02-01 13:24:44 +01:00
|
|
|
|
url(r'^(?P<pk>\d+)/poll/(?P<poll_number>\d+)/del/$',
|
|
|
|
|
'poll_delete',
|
|
|
|
|
name='motion_poll_delete',
|
|
|
|
|
),
|
2013-02-01 17:20:11 +01:00
|
|
|
|
|
2013-04-21 19:12:50 +02:00
|
|
|
|
url(r'^(?P<pk>\d+)/poll/(?P<poll_number>\d+)/pdf/$',
|
|
|
|
|
'poll_pdf',
|
|
|
|
|
name='motion_poll_pdf',
|
|
|
|
|
),
|
|
|
|
|
|
2013-02-06 23:56:21 +01:00
|
|
|
|
url(r'^(?P<pk>\d+)/set_state/(?P<state>\d+)/$',
|
2013-02-01 17:20:11 +01:00
|
|
|
|
'set_state',
|
|
|
|
|
name='motion_set_state',
|
|
|
|
|
),
|
|
|
|
|
|
|
|
|
|
url(r'^(?P<pk>\d+)/reset_state/$',
|
|
|
|
|
'reset_state',
|
|
|
|
|
name='motion_reset_state',
|
|
|
|
|
),
|
2013-02-02 00:51:08 +01:00
|
|
|
|
|
|
|
|
|
url(r'^(?P<pk>\d+)/agenda/$',
|
|
|
|
|
'create_agenda_item',
|
|
|
|
|
name='motion_create_agenda',
|
|
|
|
|
),
|
2013-02-03 18:18:29 +01:00
|
|
|
|
|
|
|
|
|
url(r'^pdf/$',
|
|
|
|
|
'motion_list_pdf',
|
|
|
|
|
name='motion_list_pdf',
|
|
|
|
|
),
|
|
|
|
|
|
|
|
|
|
url(r'^(?P<pk>\d+)/pdf/$',
|
|
|
|
|
'motion_detail_pdf',
|
|
|
|
|
name='motion_detail_pdf',
|
|
|
|
|
),
|
2013-03-11 20:17:19 +01:00
|
|
|
|
|
|
|
|
|
url(r'^category/$',
|
|
|
|
|
'category_list',
|
|
|
|
|
name='motion_category_list',
|
|
|
|
|
),
|
|
|
|
|
|
|
|
|
|
url(r'^category/new/$',
|
|
|
|
|
'category_create',
|
|
|
|
|
name='motion_category_create',
|
|
|
|
|
),
|
|
|
|
|
|
|
|
|
|
url(r'^category/(?P<pk>\d+)/edit/$',
|
|
|
|
|
'category_update',
|
|
|
|
|
name='motion_category_update',
|
|
|
|
|
),
|
2013-03-11 21:38:07 +01:00
|
|
|
|
|
|
|
|
|
url(r'^category/(?P<pk>\d+)/del/$',
|
|
|
|
|
'category_delete',
|
|
|
|
|
name='motion_category_delete',
|
|
|
|
|
),
|
2013-05-08 18:07:09 +02:00
|
|
|
|
|
|
|
|
|
url(r'^csv_import/$',
|
|
|
|
|
'motion_csv_import',
|
|
|
|
|
name='motion_csv_import',
|
|
|
|
|
),
|
2012-10-24 11:04:23 +02:00
|
|
|
|
)
|