OpenSlides/openslides/application/urls.py

97 lines
3.1 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 *
2012-02-14 16:31:21 +01:00
from django.utils.translation import ugettext as _
2012-02-15 12:36:50 +01:00
from application.views import ViewPoll, ActivatePoll
2012-02-14 16:31:21 +01:00
2011-07-31 10:46:29 +02:00
urlpatterns = patterns('application.views',
url(r'^application/$', 'overview', \
name='application_overview'),
2012-04-12 16:21:30 +02:00
url(r'^application/(?P<application_id>\d+)/$', 'view', \
2011-07-31 10:46:29 +02:00
name='application_view'),
2012-04-12 16:21:30 +02:00
url(r'^application/(?P<application_id>\d+)/newest/$', 'view', {'newest': True}, \
2011-09-06 10:41:06 +02:00
name='application_view_newest'),
2012-04-12 16:21:30 +02:00
url(r'^application/new/$', 'edit', \
2011-07-31 10:46:29 +02:00
name='application_new'),
2012-04-12 16:21:30 +02:00
url(r'^application/import/$', 'application_import', \
name='application_import'),
2012-04-12 16:21:30 +02:00
url(r'^application/(?P<application_id>\d+)/edit/$', 'edit', \
2011-07-31 10:46:29 +02:00
name='application_edit'),
2012-04-12 16:21:30 +02:00
url(r'^application/(?P<application_id>\d+)/del/$', 'delete', \
2011-07-31 10:46:29 +02:00
name='application_delete'),
2012-04-12 16:21:30 +02:00
url(r'^application/(?P<application_id>\d+)/setnumber/$', 'set_number', \
2011-07-31 10:46:29 +02:00
name='application_set_number'),
url(r'^application/(?P<application_id>\d+)/setstatus/' \
2012-04-12 16:21:30 +02:00
'(?P<status>[a-z]{3})/$', 'set_status', \
2011-07-31 10:46:29 +02:00
name='application_set_status'),
2012-04-12 16:21:30 +02:00
url(r'^application/(?P<application_id>\d+)/permit/$', 'permit', \
2011-07-31 10:46:29 +02:00
name='application_permit'),
2012-04-12 16:21:30 +02:00
url(r'^application/version/(?P<aversion_id>\d+)/permit/$', 'permit_version', \
name='application_version_permit'),
2012-04-12 16:21:30 +02:00
url(r'^application/version/(?P<aversion_id>\d+)/reject/$', 'reject_version', \
name='application_version_reject'),
2012-04-12 16:21:30 +02:00
url(r'^application/(?P<application_id>\d+)/notpermit/$', 'notpermit', \
2011-07-31 10:46:29 +02:00
name='application_notpermit'),
2012-04-12 16:21:30 +02:00
url(r'^application/(?P<application_id>\d+)/reset/$', 'reset', \
2011-07-31 10:46:29 +02:00
name='application_reset'),
2012-04-12 16:21:30 +02:00
url(r'^application/(?P<application_id>\d+)/support/$', 'support', \
2011-07-31 10:46:29 +02:00
name='application_support'),
2012-04-12 16:21:30 +02:00
url(r'^application/(?P<application_id>\d+)/unsupport/$', 'unsupport', \
2011-07-31 10:46:29 +02:00
name='application_unsupport'),
url(r'^application/(?P<application_id>\d+)/set_active/$', 'set_active',
name='application_activate_item'),
2012-04-12 16:21:30 +02:00
url(r'^application/(?P<application_id>\d+)/gen_poll/$', 'gen_poll', \
2011-07-31 10:46:29 +02:00
name='application_gen_poll'),
2012-04-12 16:21:30 +02:00
url(r'^application/print/$', 'print_application', \
2011-07-31 10:46:29 +02:00
name='print_applications'),
2012-04-12 16:21:30 +02:00
url(r'^application/(?P<application_id>\d+)/print/$', 'print_application', \
2011-07-31 10:46:29 +02:00
name='print_application'),
2012-04-12 16:21:30 +02:00
url(r'^application/poll/(?P<poll_id>\d+)/print/$', 'print_application_poll', \
name='print_application_poll'),
2011-07-31 10:46:29 +02:00
2012-04-12 16:21:30 +02:00
url(r'^application/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',
),
2012-04-12 16:21:30 +02:00
url(r'^application/poll/(?P<poll_id>\d+)/activate/$',
2012-02-15 12:36:50 +01:00
ActivatePoll.as_view(),
name='application_poll_activate',
2012-02-14 16:31:21 +01:00
),
2011-07-31 10:46:29 +02:00
2012-04-12 16:21:30 +02:00
url(r'^application/poll/(?P<poll_id>\d+)/del/$', 'delete_poll', \
2011-07-31 10:46:29 +02:00
name='application_poll_delete'),
)