OpenSlides/openslides/agenda/urls.py

99 lines
2.2 KiB
Python
Raw Normal View History

2011-07-31 10:46:29 +02:00
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
openslides.agenda.urls
~~~~~~~~~~~~~~~~~~~~~~
URL list for the agenda 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.
"""
from django.conf.urls import url, patterns
2013-02-16 10:41:22 +01:00
from openslides.agenda.views import (
2013-03-18 12:34:47 +01:00
Overview, AgendaItemView, SetClosed, ItemUpdate, SpeakerSpeakView,
ItemCreate, ItemDelete, AgendaPDF, SpeakerAppendView, SpeakerDeleteView,
SpeakerListOpenView, SpeakerChangeOrderView)
2011-07-31 10:46:29 +02:00
2013-02-16 10:41:22 +01:00
urlpatterns = patterns(
'',
2012-02-20 17:46:45 +01:00
url(r'^$',
Overview.as_view(),
2013-02-18 18:56:37 +01:00
name='item_overview',
),
2011-07-31 10:46:29 +02:00
2012-02-20 19:39:26 +01:00
url(r'^(?P<pk>\d+)/$',
2013-03-18 12:34:47 +01:00
AgendaItemView.as_view(),
2013-02-18 18:56:37 +01:00
name='item_view',
),
2011-07-31 10:46:29 +02:00
2012-02-20 19:39:26 +01:00
url(r'^(?P<pk>\d+)/close/$',
2012-02-20 17:46:45 +01:00
SetClosed.as_view(),
{'closed': True},
2013-02-18 18:56:37 +01:00
name='item_close',
),
2011-07-31 10:46:29 +02:00
2012-02-20 19:39:26 +01:00
url(r'^(?P<pk>\d+)/open/$',
2012-02-20 17:46:45 +01:00
SetClosed.as_view(),
{'closed': False},
2013-02-18 18:56:37 +01:00
name='item_open',
),
2011-07-31 10:46:29 +02:00
2012-02-20 17:46:45 +01:00
url(r'^(?P<pk>\d+)/edit/$',
ItemUpdate.as_view(),
2013-02-18 18:56:37 +01:00
name='item_edit',
),
2011-07-31 10:46:29 +02:00
2012-02-20 17:46:45 +01:00
url(r'^new/$',
ItemCreate.as_view(),
2013-02-18 18:56:37 +01:00
name='item_new',
),
2011-07-31 10:46:29 +02:00
2012-02-20 17:46:45 +01:00
url(r'^(?P<pk>\d+)/del/$',
ItemDelete.as_view(),
2013-02-18 18:56:37 +01:00
name='item_delete',
),
2011-07-31 10:46:29 +02:00
2012-02-20 17:46:45 +01:00
url(r'^print/$',
2012-04-14 10:54:22 +02:00
AgendaPDF.as_view(),
2013-02-18 18:56:37 +01:00
name='print_agenda',
),
2013-03-18 12:34:47 +01:00
# Speaker List
url(r'^(?P<pk>\d+)/speaker/$',
SpeakerAppendView.as_view(),
name='agenda_speaker_append',
),
url(r'^(?P<pk>\d+)/speaker/open/$',
SpeakerListOpenView.as_view(open_list=True),
name='agenda_speaker_open',
),
url(r'^(?P<pk>\d+)/speaker/close/$',
SpeakerListOpenView.as_view(),
name='agenda_speaker_close',
),
url(r'^(?P<pk>\d+)/speaker/del/$',
SpeakerDeleteView.as_view(),
name='agenda_speaker_delete',
),
url(r'^(?P<pk>\d+)/speaker/(?P<speaker>\d+)/del/$',
SpeakerDeleteView.as_view(),
name='agenda_speaker_delete',
),
url(r'^(?P<pk>\d+)/speaker/(?P<person_id>[^/]+)/speak/$',
SpeakerSpeakView.as_view(),
name='agenda_speaker_speak',
),
url(r'^(?P<pk>\d+)/speaker/change_order$',
SpeakerChangeOrderView.as_view(),
name='agenda_speaker_change_order',
),
2011-07-31 10:46:29 +02:00
)