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
|
|
|
|
2012-08-10 11:51:45 +02:00
|
|
|
from openslides.participant.views import (
|
2012-10-27 18:17:22 +02:00
|
|
|
UserOverview, UserCreateView, UserDetailView, UserUpdateView,
|
|
|
|
UserDeleteView, ResetPasswordView, SetUserStatusView, UserImportView,
|
|
|
|
GroupOverview, GroupCreateView, GroupDetailView, GroupUpdateView, GroupDeleteView,
|
|
|
|
ParticipantsListPDF, ParticipantsPasswordsPDF)
|
2012-04-20 23:23:50 +02:00
|
|
|
|
2012-10-27 18:17:22 +02:00
|
|
|
urlpatterns = patterns('',
|
|
|
|
|
|
|
|
# User
|
2012-04-13 21:43:16 +02:00
|
|
|
url(r'^$',
|
2012-10-27 18:17:22 +02:00
|
|
|
UserOverview.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-10-27 18:17:22 +02:00
|
|
|
url(r'^(?P<pk>\d+)/$',
|
|
|
|
UserDetailView.as_view(),
|
2012-10-30 00:07:25 +01:00
|
|
|
name='user_view',
|
2012-10-27 18:17:22 +02:00
|
|
|
),
|
|
|
|
|
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-08-10 13:29:46 +02:00
|
|
|
url(r'^(?P<pk>\d+)/del/$',
|
|
|
|
UserDeleteView.as_view(),
|
2012-04-13 21:43:16 +02:00
|
|
|
name='user_delete',
|
|
|
|
),
|
|
|
|
|
2012-08-10 21:24:26 +02:00
|
|
|
url(r'^(?P<pk>\d+)/reset_password/$',
|
|
|
|
ResetPasswordView.as_view(),
|
|
|
|
name='user_reset_password',
|
|
|
|
),
|
|
|
|
|
2012-08-10 19:19:41 +02:00
|
|
|
url(r'^(?P<pk>\d+)/status/activate/$',
|
|
|
|
SetUserStatusView.as_view(),
|
|
|
|
{'action': 'activate'},
|
|
|
|
name='user_status_activate',
|
|
|
|
),
|
|
|
|
|
|
|
|
url(r'^(?P<pk>\d+)/status/deactivate/$',
|
|
|
|
SetUserStatusView.as_view(),
|
|
|
|
{'action': 'deactivate'},
|
|
|
|
name='user_status_deactivate',
|
2012-04-13 21:43:16 +02:00
|
|
|
),
|
|
|
|
|
2012-10-27 18:17:22 +02:00
|
|
|
url(r'^(?P<pk>\d+)/status/toggle/$',
|
|
|
|
SetUserStatusView.as_view(),
|
|
|
|
{'action': 'toggle'},
|
|
|
|
name='user_status_toggle',
|
|
|
|
),
|
|
|
|
|
2012-07-07 15:26:00 +02:00
|
|
|
url(r'^import/$',
|
2012-08-10 19:49:46 +02:00
|
|
|
UserImportView.as_view(),
|
2012-04-13 21:43:16 +02:00
|
|
|
name='user_import',
|
|
|
|
),
|
|
|
|
|
2012-10-27 18:17:22 +02:00
|
|
|
# Group
|
2012-04-13 21:43:16 +02:00
|
|
|
url(r'^group/$',
|
2012-10-27 18:17:22 +02:00
|
|
|
GroupOverview.as_view(),
|
2012-04-13 21:43:16 +02:00
|
|
|
name='user_group_overview',
|
|
|
|
),
|
|
|
|
|
2012-07-07 15:26:00 +02:00
|
|
|
url(r'^group/new/$',
|
2012-08-11 10:09:54 +02:00
|
|
|
GroupCreateView.as_view(),
|
2012-04-13 21:43:16 +02:00
|
|
|
name='user_group_new',
|
|
|
|
),
|
|
|
|
|
2012-10-27 18:17:22 +02:00
|
|
|
url(r'^group/(?P<pk>\d+)/$',
|
|
|
|
GroupDetailView.as_view(),
|
2012-10-30 00:07:25 +01:00
|
|
|
name='user_group_view',
|
2012-10-27 18:17:22 +02:00
|
|
|
),
|
|
|
|
|
2012-08-11 10:09:54 +02:00
|
|
|
url(r'^group/(?P<pk>\d+)/edit/$',
|
|
|
|
GroupUpdateView.as_view(),
|
2012-04-13 21:43:16 +02:00
|
|
|
name='user_group_edit',
|
|
|
|
),
|
|
|
|
|
2012-08-11 10:09:54 +02:00
|
|
|
url(r'^group/(?P<pk>\d+)/del/$',
|
|
|
|
GroupDeleteView.as_view(),
|
2012-04-13 21:43:16 +02:00
|
|
|
name='user_group_delete',
|
|
|
|
),
|
|
|
|
|
2012-10-27 18:17:22 +02:00
|
|
|
# PDF
|
2012-08-11 10:09:54 +02:00
|
|
|
url(r'^print/$',
|
|
|
|
ParticipantsListPDF.as_view(),
|
|
|
|
name='user_print',
|
|
|
|
),
|
|
|
|
|
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
|
|
|
)
|