OpenSlides/openslides/agenda/urls.py

71 lines
1.5 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 *
from agenda.views import Overview, View, SetActive, SetClosed, ItemUpdate, ItemCreate, ItemDelete, ItemPDF
2011-07-31 10:46:29 +02:00
urlpatterns = patterns('agenda.views',
2012-02-20 17:46:45 +01:00
url(r'^$',
Overview.as_view(),
name='item_overview',
),
2011-07-31 10:46:29 +02:00
2012-02-20 19:39:26 +01:00
url(r'^(?P<pk>\d+)/$',
2012-02-20 17:46:45 +01:00
View.as_view(),
name='item_view',
),
2011-07-31 10:46:29 +02:00
2012-02-20 19:39:26 +01:00
url(r'^(?P<pk>\d+)/activate/$',
2012-02-20 17:46:45 +01:00
SetActive.as_view(),
{'summary': False},
name='item_activate',
),
2011-07-31 10:46:29 +02:00
2012-02-20 19:39:26 +01:00
url(r'^(?P<pk>\d+)/activate/summary/$',
2012-02-20 17:46:45 +01:00
SetActive.as_view(),
{'summary': True},
name='item_activate_summary',
),
2011-07-31 10:46:29 +02:00
2012-02-20 19:39:26 +01:00
url(r'^(?P<pk>\d+)/close/$',
2012-02-20 17:46:45 +01:00
SetClosed.as_view(),
{'closed': True},
name='item_close',
),
2011-07-31 10:46:29 +02:00
2012-02-20 19:39:26 +01:00
url(r'^(?P<pk>\d+)/open/$',
2012-02-20 17:46:45 +01:00
SetClosed.as_view(),
{'closed': False},
name='item_open',
),
2011-07-31 10:46:29 +02:00
2012-02-20 17:46:45 +01:00
url(r'^(?P<pk>\d+)/edit/$',
ItemUpdate.as_view(),
name='item_edit',
),
2011-07-31 10:46:29 +02:00
2012-02-20 17:46:45 +01:00
url(r'^new/$',
ItemCreate.as_view(),
name='item_new',
),
2011-07-31 10:46:29 +02:00
2012-02-20 17:46:45 +01:00
url(r'^(?P<pk>\d+)/del/$',
ItemDelete.as_view(),
name='item_delete',
),
2011-07-31 10:46:29 +02:00
2012-02-20 17:46:45 +01:00
url(r'^print/$',
ItemPDF.as_view(),
2012-02-20 17:46:45 +01:00
name='print_agenda',
),
2011-07-31 10:46:29 +02:00
)