2011-07-31 10:46:29 +02:00
|
|
|
#!/usr/bin/env python
|
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
"""
|
|
|
|
openslides.assignments.urls
|
|
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
|
|
|
|
URL list for the assignment app.
|
|
|
|
|
|
|
|
:copyright: 2011 by the OpenSlides team, see AUTHORS.
|
|
|
|
:license: GNU GPL, see LICENSE for more details.
|
|
|
|
"""
|
|
|
|
|
|
|
|
from django.conf.urls.defaults import *
|
|
|
|
|
|
|
|
urlpatterns = patterns('assignment.views',
|
|
|
|
url(r'^assignment/$', 'get_overview', \
|
|
|
|
name='assignment_overview'),
|
|
|
|
|
|
|
|
url(r'^assignment/(?P<assignment_id>\d+)$', 'view', \
|
|
|
|
name='assignment_view'),
|
|
|
|
|
|
|
|
url(r'^assignment/new$', 'edit', \
|
|
|
|
name='assignment_new'),
|
|
|
|
|
|
|
|
url(r'^assignment/(?P<assignment_id>\d+)/edit$', 'edit', \
|
|
|
|
name='assignment_edit'),
|
|
|
|
|
|
|
|
url(r'^assignment/(?P<assignment_id>\d+)/del$', 'delete', \
|
|
|
|
name='assignment_delete'),
|
|
|
|
|
|
|
|
url(r'^assignment/(?P<assignment_id>\d+)/setstatus/(?P<status>[a-z]{3})$', 'set_status', \
|
|
|
|
name='assignment_set_status'),
|
|
|
|
|
|
|
|
url(r'^assignment/(?P<assignment_id>\d+)/run$', 'run', \
|
|
|
|
name='assignment_run'),
|
|
|
|
|
|
|
|
url(r'^assignment/(?P<assignment_id>\d+)/delrun$', 'delrun', \
|
|
|
|
name='assignment_delrun'),
|
|
|
|
|
|
|
|
url(r'^assignment/(?P<assignment_id>\d+)/delother/(?P<profile_id>\d+)$', 'delother', \
|
|
|
|
name='assignment_delother'),
|
|
|
|
|
2011-09-03 10:52:29 +02:00
|
|
|
url(r'^assignment/poll/(?P<poll_id>\d+)/print$', 'print_assignment_poll', \
|
2011-07-31 10:46:29 +02:00
|
|
|
name='print_assignment_poll'),
|
|
|
|
|
2011-09-07 07:52:44 +02:00
|
|
|
url(r'^assignment/print$', 'print_assignment', \
|
|
|
|
name='print_assignment'),
|
|
|
|
|
|
|
|
url(r'^assignment/(?P<assignment_id>\d+)/print$', 'print_assignment', \
|
|
|
|
name='print_assignment'),
|
|
|
|
|
2011-09-03 10:52:29 +02:00
|
|
|
url(r'^assignment/(?P<assignment_id>\d+)/gen_poll$', 'gen_poll', \
|
2011-07-31 10:46:29 +02:00
|
|
|
name='assignment_gen_poll'),
|
|
|
|
|
2011-09-03 10:52:29 +02:00
|
|
|
url(r'^assignment/poll/(?P<poll_id>\d+)$', 'poll_view', \
|
2011-07-31 10:46:29 +02:00
|
|
|
name='assignment_poll_view'),
|
|
|
|
|
|
|
|
url(r'^assignment/poll/(?P<poll_id>\d+)/del$', 'delete_poll', \
|
|
|
|
name='assignment_poll_delete'),
|
2011-09-03 11:42:44 +02:00
|
|
|
|
2011-09-08 12:30:34 +02:00
|
|
|
url(r'^assignment/poll/(?P<poll_id>\d+)/pub/$', 'set_published', {'published': True},
|
|
|
|
name='assignment_poll_publish'),
|
|
|
|
|
|
|
|
url(r'^assignment/poll/(?P<poll_id>\d+)/notpub/$', 'set_published', {'published': False},
|
|
|
|
name='assignment_poll_notpublish'),
|
|
|
|
|
2011-09-03 11:42:44 +02:00
|
|
|
url(r'^assignment/(?P<assignment_id>\d+)/elected/(?P<profile_id>\d+)$', 'set_elected', {'elected': True}, \
|
|
|
|
name='assignment_user_elected'),
|
|
|
|
|
|
|
|
url(r'^assignment/(?P<assignment_id>\d+)/notelected/(?P<profile_id>\d+)$', 'set_elected', {'elected': False}, \
|
|
|
|
name='assignment_user_not_elected'),
|
2011-07-31 10:46:29 +02:00
|
|
|
)
|