OpenSlides/openslides/agenda/urls.py

92 lines
2.6 KiB
Python
Raw Normal View History

2011-07-31 10:46:29 +02:00
# -*- coding: utf-8 -*-
from django.conf.urls import patterns, url
from . import views
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'^$',
views.Overview.as_view(),
name='item_overview'),
2011-07-31 10:46:29 +02:00
2012-02-20 19:39:26 +01:00
url(r'^(?P<pk>\d+)/$',
views.AgendaItemView.as_view(),
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/$',
views.SetClosed.as_view(),
2012-02-20 17:46:45 +01:00
{'closed': True},
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/$',
views.SetClosed.as_view(),
2012-02-20 17:46:45 +01:00
{'closed': False},
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/$',
views.ItemUpdate.as_view(),
name='item_edit'),
2011-07-31 10:46:29 +02:00
2012-02-20 17:46:45 +01:00
url(r'^new/$',
views.ItemCreate.as_view(),
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/$',
views.ItemDelete.as_view(),
name='item_delete'),
2011-07-31 10:46:29 +02:00
2012-02-20 17:46:45 +01:00
url(r'^print/$',
views.AgendaPDF.as_view(),
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/$',
views.SpeakerAppendView.as_view(),
name='agenda_speaker_append'),
2013-03-18 12:34:47 +01:00
url(r'^(?P<pk>\d+)/speaker/close/$',
views.SpeakerListCloseView.as_view(),
name='agenda_speaker_close'),
2013-03-18 12:34:47 +01:00
2013-03-18 12:34:47 +01:00
url(r'^(?P<pk>\d+)/speaker/reopen/$',
views.SpeakerListCloseView.as_view(reopen=True),
name='agenda_speaker_reopen'),
2013-03-18 12:34:47 +01:00
2013-03-18 12:34:47 +01:00
url(r'^(?P<pk>\d+)/speaker/del/$',
views.SpeakerDeleteView.as_view(),
name='agenda_speaker_delete'),
2013-03-18 12:34:47 +01:00
url(r'^(?P<pk>\d+)/speaker/(?P<speaker>\d+)/del/$',
views.SpeakerDeleteView.as_view(),
name='agenda_speaker_delete'),
2013-03-18 12:34:47 +01:00
url(r'^(?P<pk>\d+)/speaker/(?P<person_id>[^/]+)/speak/$',
views.SpeakerSpeakView.as_view(),
name='agenda_speaker_speak'),
2013-03-18 12:34:47 +01:00
url(r'^(?P<pk>\d+)/speaker/end_speach/$',
views.SpeakerEndSpeachView.as_view(),
name='agenda_speaker_end_speach'),
2013-03-18 12:34:47 +01:00
url(r'^(?P<pk>\d+)/speaker/change_order/$',
views.SpeakerChangeOrderView.as_view(),
name='agenda_speaker_change_order'),
2013-03-18 12:34:47 +01:00
url(r'^list_of_speakers/$',
views.CurrentListOfSpeakersView.as_view(),
name='agenda_current_list_of_speakers'),
url(r'^list_of_speakers/add/$',
views.CurrentListOfSpeakersView.as_view(set_speaker=True),
name='agenda_add_to_current_list_of_speakers'),
url(r'^list_of_speakers/next/$',
views.CurrentListOfSpeakersView.as_view(next_speaker=True),
name='agenda_next_on_current_list_of_speakers'),
url(r'^list_of_speakers/end_speach/$',
views.CurrentListOfSpeakersView.as_view(end_speach=True),
name='agenda_end_speach_on_current_list_of_speakers')
2011-07-31 10:46:29 +02:00
)