2012-02-06 22:08:08 +01:00
|
|
|
#!/usr/bin/env python
|
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
"""
|
|
|
|
openslides.projector.urls
|
|
|
|
~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
|
|
|
|
URL list for the projector app.
|
|
|
|
|
|
|
|
:copyright: 2011 by the OpenSlides team, see AUTHORS.
|
|
|
|
:license: GNU GPL, see LICENSE for more details.
|
|
|
|
"""
|
|
|
|
|
|
|
|
from django.conf.urls.defaults import *
|
|
|
|
|
2012-03-12 18:22:18 +01:00
|
|
|
from utils.views import CreateView
|
|
|
|
|
2012-04-14 16:17:26 +02:00
|
|
|
from views import ControlView, ActivateView
|
2012-04-10 20:09:10 +02:00
|
|
|
from agenda.views import ItemUpdate
|
2012-03-12 18:22:18 +01:00
|
|
|
from models import ProjectorSlide
|
|
|
|
|
2012-03-03 09:11:56 +01:00
|
|
|
|
2012-02-06 22:08:08 +01:00
|
|
|
urlpatterns = patterns('projector.views',
|
|
|
|
url(r'^$', 'active_slide',
|
2012-04-18 15:47:51 +02:00
|
|
|
{'sid': None},
|
|
|
|
name='projector_show',
|
|
|
|
),
|
|
|
|
|
|
|
|
url(r'^preview/(?P<sid>[^/]*)/$',
|
|
|
|
'active_slide',
|
|
|
|
name='projctor_preview_slide',
|
|
|
|
),
|
2012-02-06 22:08:08 +01:00
|
|
|
|
2012-04-18 15:47:51 +02:00
|
|
|
url(r'^control/$',
|
2012-03-06 19:55:19 +01:00
|
|
|
ControlView.as_view(),
|
2012-03-06 08:19:49 +01:00
|
|
|
name='projector_control',
|
2012-03-03 09:11:56 +01:00
|
|
|
),
|
|
|
|
|
|
|
|
url(r'^activate/(?P<sid>[^/]*)/$',
|
|
|
|
ActivateView.as_view(),
|
|
|
|
name='projector_activate_slide',
|
|
|
|
),
|
|
|
|
|
2012-04-10 21:11:50 +02:00
|
|
|
url(r'^activate/(?P<sid>[^/]*)/summary/$',
|
|
|
|
ActivateView.as_view(),
|
|
|
|
{'summary': True},
|
|
|
|
name='projector_activate_summary',
|
|
|
|
),
|
|
|
|
|
2012-03-12 18:22:18 +01:00
|
|
|
url(r'^new/$',
|
|
|
|
CreateView.as_view(
|
|
|
|
success_url='projector_control',
|
|
|
|
model=ProjectorSlide,
|
|
|
|
template_name='projector/new.html',
|
|
|
|
permission_required='projector.can_manage_projector'
|
|
|
|
),
|
|
|
|
name='projector_new',
|
|
|
|
),
|
|
|
|
|
2012-02-20 20:35:12 +01:00
|
|
|
url(r'^bigger/$', 'projector_edit', {'direction': 'bigger'},
|
2012-02-06 22:08:08 +01:00
|
|
|
name='projector_bigger'),
|
|
|
|
|
2012-02-20 20:35:12 +01:00
|
|
|
url(r'^smaller/$', 'projector_edit', {'direction': 'smaller'},
|
2012-02-06 22:08:08 +01:00
|
|
|
name='projector_smaller'),
|
|
|
|
|
2012-02-20 20:35:12 +01:00
|
|
|
url(r'^up/$', 'projector_edit', {'direction': 'up'},
|
2012-02-06 22:08:08 +01:00
|
|
|
name='projector_up'),
|
|
|
|
|
2012-02-20 20:35:12 +01:00
|
|
|
url(r'^down/$', 'projector_edit', {'direction': 'down'},
|
2012-02-06 22:08:08 +01:00
|
|
|
name='projector_down'),
|
|
|
|
|
2012-02-20 20:35:12 +01:00
|
|
|
url(r'^clean/$', 'projector_edit', {'direction': 'clean'},
|
2012-02-06 22:08:08 +01:00
|
|
|
name='projector_clean'),
|
|
|
|
|
2012-02-20 20:35:12 +01:00
|
|
|
url(r'^countdown/show/$', 'projector_countdown', {'command': 'show'},
|
2012-02-06 22:08:08 +01:00
|
|
|
name='countdown_open'),
|
|
|
|
|
2012-02-20 20:35:12 +01:00
|
|
|
url(r'^countdown/hide/$', 'projector_countdown', {'command': 'hide'},
|
2012-02-06 22:08:08 +01:00
|
|
|
name='countdown_close'),
|
|
|
|
|
2012-03-16 12:28:42 +01:00
|
|
|
url(r'^countdown/reset/$', 'projector_countdown', {'command': 'reset'},
|
2012-02-06 22:08:08 +01:00
|
|
|
name='countdown_reset'),
|
|
|
|
|
2012-02-20 20:35:12 +01:00
|
|
|
url(r'^countdown/start/$', 'projector_countdown', {'command': 'start'},
|
2012-02-06 22:08:08 +01:00
|
|
|
name='countdown_start'),
|
|
|
|
|
2012-02-20 20:35:12 +01:00
|
|
|
url(r'^countdown/stop/$', 'projector_countdown', {'command': 'stop'},
|
2012-02-06 22:08:08 +01:00
|
|
|
name='countdown_stop'),
|
|
|
|
)
|