2011-07-31 10:46:29 +02:00
|
|
|
#!/usr/bin/env python
|
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
"""
|
|
|
|
openslides.participant.urls
|
|
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
|
|
|
|
URL list for the participant app.
|
|
|
|
|
2012-04-25 22:29:19 +02:00
|
|
|
:copyright: 2011, 2012 by OpenSlides team, see AUTHORS.
|
2011-07-31 10:46:29 +02:00
|
|
|
:license: GNU GPL, see LICENSE for more details.
|
|
|
|
"""
|
|
|
|
|
2012-07-07 15:26:00 +02:00
|
|
|
from django.conf.urls.defaults import url, patterns
|
2011-07-31 10:46:29 +02:00
|
|
|
from django.core.urlresolvers import reverse
|
|
|
|
|
2012-08-10 11:51:45 +02:00
|
|
|
from openslides.participant.views import (
|
2012-08-10 13:22:09 +02:00
|
|
|
ParticipantsListPDF, ParticipantsPasswordsPDF, Overview, UserCreateView, UserUpdateView)
|
2012-04-20 23:23:50 +02:00
|
|
|
|
2012-07-10 14:00:51 +02:00
|
|
|
urlpatterns = patterns('openslides.participant.views',
|
2012-04-13 21:43:16 +02:00
|
|
|
url(r'^$',
|
2012-08-10 11:51:45 +02:00
|
|
|
Overview.as_view(),
|
2012-04-13 21:43:16 +02:00
|
|
|
name='user_overview',
|
|
|
|
),
|
|
|
|
|
2012-07-07 15:26:00 +02:00
|
|
|
url(r'^new/$',
|
2012-08-10 13:22:09 +02:00
|
|
|
UserCreateView.as_view(),
|
2012-04-13 21:43:16 +02:00
|
|
|
name='user_new',
|
|
|
|
),
|
|
|
|
|
2012-08-10 13:22:09 +02:00
|
|
|
url(r'^(?P<pk>\d+)/edit/$',
|
|
|
|
UserUpdateView.as_view(),
|
2012-04-13 21:43:16 +02:00
|
|
|
name='user_edit',
|
|
|
|
),
|
|
|
|
|
2012-07-07 15:26:00 +02:00
|
|
|
url(r'^print/$',
|
2012-04-20 23:23:50 +02:00
|
|
|
ParticipantsListPDF.as_view(),
|
2012-04-13 21:43:16 +02:00
|
|
|
name='user_print',
|
|
|
|
),
|
|
|
|
|
2012-07-07 15:26:00 +02:00
|
|
|
url(r'^(?P<user_id>\d+)/del/$',
|
2012-04-13 21:43:16 +02:00
|
|
|
'user_delete',
|
|
|
|
name='user_delete',
|
|
|
|
),
|
|
|
|
|
2012-05-19 19:22:20 +02:00
|
|
|
url(r'^(?P<user_id>\d+)/status/$',
|
|
|
|
'user_set_status',
|
|
|
|
name='user_status',
|
2012-04-13 21:43:16 +02:00
|
|
|
),
|
|
|
|
|
2012-07-07 15:26:00 +02:00
|
|
|
url(r'^import/$',
|
2012-04-13 21:43:16 +02:00
|
|
|
'user_import',
|
|
|
|
name='user_import',
|
|
|
|
),
|
|
|
|
|
|
|
|
url(r'^group/$',
|
|
|
|
'get_group_overview',
|
|
|
|
name='user_group_overview',
|
|
|
|
),
|
|
|
|
|
2012-07-07 15:26:00 +02:00
|
|
|
url(r'^group/new/$',
|
2012-04-13 21:43:16 +02:00
|
|
|
'group_edit',
|
|
|
|
name='user_group_new',
|
|
|
|
),
|
|
|
|
|
2012-07-07 15:26:00 +02:00
|
|
|
url(r'^group/(?P<group_id>\d+)/edit/$',
|
2012-04-13 21:43:16 +02:00
|
|
|
'group_edit',
|
|
|
|
name='user_group_edit',
|
|
|
|
),
|
|
|
|
|
2012-07-07 15:26:00 +02:00
|
|
|
url(r'^group/(?P<group_id>\d+)/del/$',
|
2012-04-13 21:43:16 +02:00
|
|
|
'group_delete',
|
|
|
|
name='user_group_delete',
|
|
|
|
),
|
|
|
|
|
2012-07-07 15:26:00 +02:00
|
|
|
url(r'^resetpassword/(?P<user_id>\d+)/$',
|
2012-04-13 21:43:16 +02:00
|
|
|
'reset_password',
|
|
|
|
name='user_reset_password',
|
|
|
|
),
|
|
|
|
|
2012-07-07 15:26:00 +02:00
|
|
|
url(r'^passwords/print/$',
|
2012-04-20 23:23:50 +02:00
|
|
|
ParticipantsPasswordsPDF.as_view(),
|
2012-04-13 21:43:16 +02:00
|
|
|
name='print_passwords',
|
|
|
|
),
|
2011-07-31 10:46:29 +02:00
|
|
|
)
|