OpenSlides/openslides/application/urls.py

136 lines
3.0 KiB
Python
Raw Normal View History

2011-07-31 10:46:29 +02:00
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
openslides.application.urls
~~~~~~~~~~~~~~~~~~~~~~~~~~~
URL list for the application app.
:copyright: 2011 by the OpenSlides team, see AUTHORS.
:license: GNU GPL, see LICENSE for more details.
"""
from django.conf.urls.defaults import url, patterns
2012-02-14 16:31:21 +01:00
from django.utils.translation import ugettext as _
from application.views import ViewPoll, ApplicationPDF, ApplicationPollPDF, CreateAgendaItem
2012-02-14 16:31:21 +01:00
2011-07-31 10:46:29 +02:00
urlpatterns = patterns('application.views',
url(r'^$',
'overview',
name='application_overview',
),
2011-07-31 10:46:29 +02:00
url(r'^(?P<application_id>\d+)/$',
'view',
name='application_view',
),
2011-07-31 10:46:29 +02:00
url(r'^(?P<application_id>\d+)/agenda/$',
CreateAgendaItem.as_view(),
name='application_create_agenda',
),
url(r'^(?P<application_id>\d+)/newest/$',
'view',
{'newest': True},
name='application_view_newest',
),
2011-09-06 10:41:06 +02:00
url(r'^new/$',
'edit',
name='application_new',
),
2011-07-31 10:46:29 +02:00
url(r'^import/$',
'application_import',
name='application_import',
),
url(r'^(?P<application_id>\d+)/edit/$',
'edit',
name='application_edit',
),
2011-07-31 10:46:29 +02:00
url(r'^(?P<application_id>\d+)/del/$',
'delete',
name='application_delete',
),
2011-07-31 10:46:29 +02:00
url(r'^(?P<application_id>\d+)/setnumber/$',
'set_number',
name='application_set_number',
),
2011-07-31 10:46:29 +02:00
url(r'^(?P<application_id>\d+)/setstatus/' '(?P<status>[a-z]{3})/$',
'set_status',
name='application_set_status',
),
2011-07-31 10:46:29 +02:00
url(r'^(?P<application_id>\d+)/permit/$',
'permit',
name='application_permit',
),
2011-07-31 10:46:29 +02:00
url(r'^version/(?P<aversion_id>\d+)/permit/$',
'permit_version',
name='application_version_permit',
),
url(r'^version/(?P<aversion_id>\d+)/reject/$',
'reject_version',
name='application_version_reject',
),
url(r'^(?P<application_id>\d+)/notpermit/$',
'notpermit',
name='application_notpermit',
),
2011-07-31 10:46:29 +02:00
url(r'^(?P<application_id>\d+)/reset/$',
'reset',
name='application_reset',
),
2011-07-31 10:46:29 +02:00
url(r'^(?P<application_id>\d+)/support/$',
'support',
name='application_support',
),
2011-07-31 10:46:29 +02:00
url(r'^(?P<application_id>\d+)/unsupport/$',
'unsupport',
name='application_unsupport',
),
2011-07-31 10:46:29 +02:00
url(r'^(?P<application_id>\d+)/gen_poll/$',
'gen_poll',
name='application_gen_poll',
),
2011-07-31 10:46:29 +02:00
url(r'^print/$',
ApplicationPDF.as_view(),
2012-04-18 18:54:48 +02:00
{'application_id': None},
name='print_applications',
),
2011-07-31 10:46:29 +02:00
url(r'^(?P<application_id>\d+)/print/$',
ApplicationPDF.as_view(),
name='print_application',
),
2011-07-31 10:46:29 +02:00
url(r'^poll/(?P<poll_id>\d+)/print/$',
ApplicationPollPDF.as_view(),
name='print_application_poll',
),
2011-07-31 10:46:29 +02:00
url(r'^poll/(?P<poll_id>\d+)/$',
2012-02-14 16:31:21 +01:00
ViewPoll.as_view(),
2012-02-15 12:36:50 +01:00
name='application_poll_view',
),
url(r'^poll/(?P<poll_id>\d+)/del/$',
'delete_poll',
name='application_poll_delete',
),
2011-07-31 10:46:29 +02:00
)