2012-02-06 22:08:08 +01:00
|
|
|
#!/usr/bin/env python
|
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
"""
|
|
|
|
openslides.projector.urls
|
2012-07-07 14:01:40 +02:00
|
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~
|
2012-02-06 22:08:08 +01:00
|
|
|
|
|
|
|
URL list for the projector app.
|
|
|
|
|
2012-04-25 22:29:19 +02:00
|
|
|
:copyright: 2011, 2012 by OpenSlides team, see AUTHORS.
|
2012-02-06 22:08:08 +01:00
|
|
|
:license: GNU GPL, see LICENSE for more details.
|
|
|
|
"""
|
|
|
|
|
2013-01-05 01:05:38 +01:00
|
|
|
from django.conf.urls import patterns, url
|
2012-02-06 22:08:08 +01:00
|
|
|
|
2013-09-25 10:01:01 +02:00
|
|
|
from . import views
|
2012-03-12 18:22:18 +01:00
|
|
|
|
2013-09-25 10:01:01 +02:00
|
|
|
urlpatterns = patterns(
|
|
|
|
'',
|
2012-07-01 15:35:05 +02:00
|
|
|
url(r'^$',
|
2013-09-25 10:01:01 +02:00
|
|
|
views.Projector.as_view(),
|
|
|
|
name='projector_show'),
|
2012-04-18 15:47:51 +02:00
|
|
|
|
2012-07-04 03:19:42 +02:00
|
|
|
url(r'^preview/$',
|
2013-09-25 10:01:01 +02:00
|
|
|
views.Projector.as_view(),
|
2013-08-04 12:59:11 +02:00
|
|
|
{'callback': None},
|
2013-09-25 10:01:01 +02:00
|
|
|
name='projctor_preview_welcomepage'),
|
2012-07-04 03:19:42 +02:00
|
|
|
|
2013-08-04 12:59:11 +02:00
|
|
|
url(r'^preview/(?P<callback>[^/]*)/$',
|
2013-09-25 10:01:01 +02:00
|
|
|
views.Projector.as_view(),
|
|
|
|
name='projector_preview'),
|
2012-02-06 22:08:08 +01:00
|
|
|
|
2013-08-04 12:59:11 +02:00
|
|
|
url(r'^activate/(?P<callback>[^/]*)/$',
|
2013-09-25 10:01:01 +02:00
|
|
|
views.ActivateView.as_view(),
|
|
|
|
name='projector_activate_slide'),
|
2012-03-03 09:11:56 +01:00
|
|
|
|
2013-08-04 12:59:11 +02:00
|
|
|
url(r'^dashboard/$',
|
2013-09-25 10:01:01 +02:00
|
|
|
views.DashboardView.as_view(),
|
|
|
|
name='dashboard'),
|
2012-04-10 21:11:50 +02:00
|
|
|
|
2012-08-15 13:42:25 +02:00
|
|
|
url(r'^widgets/$',
|
2013-09-25 10:01:01 +02:00
|
|
|
views.SelectWidgetsView.as_view(),
|
|
|
|
name='projector_select_widgets'),
|
2012-08-15 13:42:25 +02:00
|
|
|
|
2012-08-15 18:00:22 +02:00
|
|
|
url(r'^overlay_message/$',
|
2013-09-25 10:01:01 +02:00
|
|
|
views.OverlayMessageView.as_view(),
|
|
|
|
name='projector_overlay_message'),
|
2012-08-15 18:00:22 +02:00
|
|
|
|
2012-03-12 18:22:18 +01:00
|
|
|
url(r'^new/$',
|
2013-09-25 10:01:01 +02:00
|
|
|
views.CustomSlideCreateView.as_view(),
|
|
|
|
name='customslide_new'),
|
2012-05-18 23:24:54 +02:00
|
|
|
|
2012-05-18 23:07:09 +02:00
|
|
|
url(r'^(?P<pk>\d+)/edit/$',
|
2013-09-25 10:01:01 +02:00
|
|
|
views.CustomSlideUpdateView.as_view(),
|
|
|
|
name='customslide_edit'),
|
2012-03-12 18:22:18 +01:00
|
|
|
|
2012-05-18 23:24:54 +02:00
|
|
|
url(r'^(?P<pk>\d+)/del/$',
|
2013-09-25 10:01:01 +02:00
|
|
|
views.CustomSlideDeleteView.as_view(),
|
|
|
|
name='customslide_delete'),
|
2012-05-18 23:24:54 +02:00
|
|
|
|
2012-07-01 10:52:08 +02:00
|
|
|
url(r'^bigger/$',
|
2013-10-17 15:32:54 +02:00
|
|
|
views.ProjectorControllView.as_view(),
|
2012-07-01 10:52:08 +02:00
|
|
|
{'direction': 'bigger'},
|
2013-09-25 10:01:01 +02:00
|
|
|
name='projector_bigger'),
|
2012-02-06 22:08:08 +01:00
|
|
|
|
2012-07-01 10:52:08 +02:00
|
|
|
url(r'^smaller/$',
|
2013-10-17 15:32:54 +02:00
|
|
|
views.ProjectorControllView.as_view(),
|
2012-07-01 10:52:08 +02:00
|
|
|
{'direction': 'smaller'},
|
2013-09-25 10:01:01 +02:00
|
|
|
name='projector_smaller'),
|
2012-02-06 22:08:08 +01:00
|
|
|
|
2012-07-01 10:52:08 +02:00
|
|
|
url(r'^up/$',
|
2013-10-17 15:32:54 +02:00
|
|
|
views.ProjectorControllView.as_view(),
|
2012-07-01 10:52:08 +02:00
|
|
|
{'direction': 'up'},
|
2013-09-25 10:01:01 +02:00
|
|
|
name='projector_up'),
|
2012-02-06 22:08:08 +01:00
|
|
|
|
2012-07-01 10:52:08 +02:00
|
|
|
url(r'^down/$',
|
2013-10-17 15:32:54 +02:00
|
|
|
views.ProjectorControllView.as_view(),
|
2012-07-01 10:52:08 +02:00
|
|
|
{'direction': 'down'},
|
2013-09-25 10:01:01 +02:00
|
|
|
name='projector_down'),
|
2012-02-06 22:08:08 +01:00
|
|
|
|
2012-07-01 10:52:08 +02:00
|
|
|
url(r'^clean/$',
|
2013-10-17 15:32:54 +02:00
|
|
|
views.ProjectorControllView.as_view(),
|
2012-07-01 10:52:08 +02:00
|
|
|
{'direction': 'clean'},
|
2013-09-25 10:01:01 +02:00
|
|
|
name='projector_clean'),
|
2012-02-06 22:08:08 +01:00
|
|
|
|
2012-07-01 10:44:41 +02:00
|
|
|
url(r'^countdown/reset/$',
|
2013-10-17 15:32:54 +02:00
|
|
|
views.CountdownControllView.as_view(),
|
2013-09-25 10:01:01 +02:00
|
|
|
{'command': 'reset'},
|
|
|
|
name='countdown_reset'),
|
2012-02-06 22:08:08 +01:00
|
|
|
|
2012-07-01 10:44:41 +02:00
|
|
|
url(r'^countdown/start/$',
|
2013-10-17 15:32:54 +02:00
|
|
|
views.CountdownControllView.as_view(),
|
2013-09-25 10:01:01 +02:00
|
|
|
{'command': 'start'},
|
|
|
|
name='countdown_start'),
|
2012-02-06 22:08:08 +01:00
|
|
|
|
2012-07-01 10:44:41 +02:00
|
|
|
url(r'^countdown/stop/$',
|
2013-10-17 15:32:54 +02:00
|
|
|
views.CountdownControllView.as_view(),
|
2013-09-25 10:01:01 +02:00
|
|
|
{'command': 'stop'},
|
|
|
|
name='countdown_stop'),
|
2012-04-26 12:43:35 +02:00
|
|
|
|
2012-07-01 10:44:41 +02:00
|
|
|
url(r'^countdown/set-default/$',
|
2013-10-17 15:32:54 +02:00
|
|
|
views.CountdownControllView.as_view(),
|
2013-09-25 10:01:01 +02:00
|
|
|
{'command': 'set-default'},
|
|
|
|
name='countdown_set_default'),
|
2012-07-04 02:43:26 +02:00
|
|
|
|
|
|
|
url('^overlay/(?P<name>[^/]*)/activate/$',
|
2013-09-25 10:01:01 +02:00
|
|
|
views.ActivateOverlay.as_view(),
|
2012-07-04 02:43:26 +02:00
|
|
|
{'activate': True},
|
2013-09-25 10:01:01 +02:00
|
|
|
name='projector_overlay_activate'),
|
2012-07-04 02:43:26 +02:00
|
|
|
|
|
|
|
url('^overlay/(?P<name>[^/]*)/deactivate/$',
|
2013-09-25 10:01:01 +02:00
|
|
|
views.ActivateOverlay.as_view(),
|
2012-07-04 02:43:26 +02:00
|
|
|
{'activate': False},
|
2013-09-25 10:01:01 +02:00
|
|
|
name='projector_overlay_deactivate'),
|
2012-02-06 22:08:08 +01:00
|
|
|
)
|