OpenSlides/openslides/agenda/urls.py

68 lines
2.0 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: 2011 by the OpenSlides team, see AUTHORS.
:license: GNU GPL, see LICENSE for more details.
"""
from django.conf.urls.defaults import *
urlpatterns = patterns('agenda.views',
url(r'^beamer/$', 'beamer',
name='item_beamer'),
url(r'^$', 'overview'),
2011-09-04 19:22:30 +02:00
url(r'^agenda/$', 'overview',
2011-07-31 10:46:29 +02:00
name='item_overview'),
2011-09-04 19:22:30 +02:00
url(r'^agenda/(?P<item_id>\d+)/$', 'view',
2011-07-31 10:46:29 +02:00
name='item_view'),
2011-09-04 19:22:30 +02:00
url(r'^agenda/(?P<item_id>\d+)/activate/$', 'set_active',
2011-07-31 10:46:29 +02:00
name='item_activate'),
2011-09-04 19:22:30 +02:00
url(r'^agenda/(?P<item_id>\d+)/activate/summary/$', 'set_active',
2011-07-31 10:46:29 +02:00
{'summary': True},\
name='item_activate_summary'),
2011-09-04 19:22:30 +02:00
url(r'^agenda/(?P<item_id>\d+)/close/$', 'set_closed', {'closed': True},
2011-07-31 10:46:29 +02:00
name='item_close'),
2011-09-04 19:22:30 +02:00
url(r'^agenda/(?P<item_id>\d+)/open/$', 'set_closed', {'closed': False},
2011-07-31 10:46:29 +02:00
name='item_open'),
2011-09-04 19:22:30 +02:00
url(r'^agenda/(?P<item_id>\d+)/edit/$', 'edit',
2011-07-31 10:46:29 +02:00
name='item_edit'),
2011-09-04 19:22:30 +02:00
url(r'^agenda/new/$', 'edit',
2011-07-31 10:46:29 +02:00
name='item_new_default'),
2011-09-04 19:22:30 +02:00
url(r'^agenda/new/(?P<form>ItemText|ItemApplication|ItemPoll|'
2011-07-31 10:46:29 +02:00
r'ItemAssignment)/$', 'edit',
name='item_new'),
2011-09-04 19:22:30 +02:00
url(r'^agenda/new/(?P<form>ItemText|ItemApplication|ItemPoll|'
2011-07-31 10:46:29 +02:00
r'ItemAssignment)/(?P<default>\d+)/$', 'edit',
name='item_new_default'),
2011-09-04 19:22:30 +02:00
url(r'^agenda/(?P<item_id>\d+)/del/$', 'delete',
2011-07-31 10:46:29 +02:00
name='item_delete'),
2011-09-04 19:22:30 +02:00
url(r'^agenda/print/$', 'print_agenda',
2011-07-31 10:46:29 +02:00
name='print_agenda'),
2011-09-04 00:18:11 +02:00
url(r'^beamer/bigger$', 'beamer_edit', {'direction': 'bigger'}, name='beamer_bigger'),
url(r'^beamer/smaller$', 'beamer_edit', {'direction': 'smaller'}, name='beamer_smaller'),
url(r'^beamer/up$', 'beamer_edit', {'direction': 'up'}, name='beamer_up'),
url(r'^beamer/down$', 'beamer_edit', {'direction': 'down'}, name='beamer_down'),
2011-07-31 10:46:29 +02:00
)