OpenSlides/openslides/agenda/urls.py
2011-09-03 01:24:50 +02:00

60 lines
1.6 KiB
Python

#!/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'),
url(r'^item/$', 'overview',
name='item_overview'),
url(r'^item/(?P<item_id>\d+)/$', 'view',
name='item_view'),
url(r'^item/(?P<item_id>\d+)/activate/$', 'set_active',
name='item_activate'),
url(r'^item/(?P<item_id>\d+)/activate/summary/$', 'set_active',
{'summary': True},\
name='item_activate_summary'),
url(r'^item/(?P<item_id>\d+)/close/$', 'set_closed', {'closed': True},
name='item_close'),
url(r'^item/(?P<item_id>\d+)/open/$', 'set_closed', {'closed': False},
name='item_open'),
url(r'^item/(?P<item_id>\d+)/edit/$', 'edit',
name='item_edit'),
url(r'^item/new/$', 'edit',
name='item_new_default'),
url(r'^item/new/(?P<form>ItemText|ItemApplication|ItemPoll|'
r'ItemAssignment)/$', 'edit',
name='item_new'),
url(r'^item/new/(?P<form>ItemText|ItemApplication|ItemPoll|'
r'ItemAssignment)/(?P<default>\d+)/$', 'edit',
name='item_new_default'),
url(r'^item/(?P<item_id>\d+)/del/$', 'delete',
name='item_delete'),
url(r'^item/print/$', 'print_agenda',
name='print_agenda'),
)