1fb1f17d15
It is now possible to define a default state and to submit extra stylefiles and javascript files when defining a widget in an app. This is done by a new metaclass in openslides.utils.dispatch. Also fixed some other tests.
92 lines
2.6 KiB
Python
92 lines
2.6 KiB
Python
# -*- coding: utf-8 -*-
|
|
|
|
from django.conf.urls import patterns, url
|
|
|
|
from . import views
|
|
|
|
urlpatterns = patterns(
|
|
'',
|
|
url(r'^$',
|
|
views.Overview.as_view(),
|
|
name='item_overview'), # TODO: Rename this to item_list
|
|
|
|
url(r'^(?P<pk>\d+)/$',
|
|
views.AgendaItemView.as_view(),
|
|
name='item_view'),
|
|
|
|
url(r'^(?P<pk>\d+)/close/$',
|
|
views.SetClosed.as_view(),
|
|
{'closed': True},
|
|
name='item_close'),
|
|
|
|
url(r'^(?P<pk>\d+)/open/$',
|
|
views.SetClosed.as_view(),
|
|
{'closed': False},
|
|
name='item_open'),
|
|
|
|
url(r'^(?P<pk>\d+)/edit/$',
|
|
views.ItemUpdate.as_view(),
|
|
name='item_edit'),
|
|
|
|
url(r'^new/$',
|
|
views.ItemCreate.as_view(),
|
|
name='item_new'),
|
|
|
|
url(r'^(?P<pk>\d+)/del/$',
|
|
views.ItemDelete.as_view(),
|
|
name='item_delete'),
|
|
|
|
url(r'^print/$',
|
|
views.AgendaPDF.as_view(),
|
|
name='print_agenda'),
|
|
|
|
# List of speakers
|
|
url(r'^(?P<pk>\d+)/speaker/$',
|
|
views.SpeakerAppendView.as_view(),
|
|
name='agenda_speaker_append'),
|
|
|
|
url(r'^(?P<pk>\d+)/speaker/close/$',
|
|
views.SpeakerListCloseView.as_view(),
|
|
name='agenda_speaker_close'),
|
|
|
|
url(r'^(?P<pk>\d+)/speaker/reopen/$',
|
|
views.SpeakerListCloseView.as_view(reopen=True),
|
|
name='agenda_speaker_reopen'),
|
|
|
|
url(r'^(?P<pk>\d+)/speaker/del/$',
|
|
views.SpeakerDeleteView.as_view(),
|
|
name='agenda_speaker_delete'),
|
|
|
|
url(r'^(?P<pk>\d+)/speaker/(?P<speaker>\d+)/del/$',
|
|
views.SpeakerDeleteView.as_view(),
|
|
name='agenda_speaker_delete'),
|
|
|
|
url(r'^(?P<pk>\d+)/speaker/(?P<person_id>[^/]+)/speak/$',
|
|
views.SpeakerSpeakView.as_view(),
|
|
name='agenda_speaker_speak'),
|
|
|
|
url(r'^(?P<pk>\d+)/speaker/end_speach/$',
|
|
views.SpeakerEndSpeachView.as_view(),
|
|
name='agenda_speaker_end_speach'),
|
|
|
|
url(r'^(?P<pk>\d+)/speaker/change_order/$',
|
|
views.SpeakerChangeOrderView.as_view(),
|
|
name='agenda_speaker_change_order'),
|
|
|
|
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')
|
|
)
|