OpenSlides/openslides/agenda/urls.py

119 lines
2.9 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.
:copyright: 20112013 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 (
Overview, AgendaItemView, SetClosed, ItemUpdate, SpeakerSpeakView, SpeakerEndSpeachView,
2013-03-18 12:34:47 +01:00
ItemCreate, ItemDelete, AgendaPDF, SpeakerAppendView, SpeakerDeleteView,
2013-03-18 12:34:47 +01:00
SpeakerListCloseView, SpeakerChangeOrderView, CurrentListOfSpeakersView)
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
# List of speakers
2013-03-18 12:34:47 +01:00
url(r'^(?P<pk>\d+)/speaker/$',
SpeakerAppendView.as_view(),
name='agenda_speaker_append',
),
url(r'^(?P<pk>\d+)/speaker/close/$',
2013-03-18 12:34:47 +01:00
SpeakerListCloseView.as_view(),
2013-03-18 12:34:47 +01:00
name='agenda_speaker_close',
),
2013-03-18 12:34:47 +01:00
url(r'^(?P<pk>\d+)/speaker/reopen/$',
SpeakerListCloseView.as_view(reopen=True),
name='agenda_speaker_reopen',
),
2013-03-18 12:34:47 +01:00
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/end_speach/$',
SpeakerEndSpeachView.as_view(),
name='agenda_speaker_end_speach',
),
2013-03-18 12:34:47 +01:00
url(r'^(?P<pk>\d+)/speaker/change_order/$',
2013-03-18 12:34:47 +01:00
SpeakerChangeOrderView.as_view(),
name='agenda_speaker_change_order',
),
2013-03-18 12:34:47 +01:00
url(r'^list_of_speakers/$',
CurrentListOfSpeakersView.as_view(),
name='agenda_current_list_of_speakers',
),
url(r'^list_of_speakers/add/$',
CurrentListOfSpeakersView.as_view(set_speaker=True),
name='agenda_add_to_current_list_of_speakers',
),
url(r'^list_of_speakers/next/$',
CurrentListOfSpeakersView.as_view(next_speaker=True),
name='agenda_next_on_current_list_of_speakers',
)
2011-07-31 10:46:29 +02:00
)