OpenSlides/openslides/agenda/urls.py

60 lines
1.2 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.
2012-04-25 22:29:19 +02:00
:copyright: 2011, 2012 by OpenSlides team, see AUTHORS.
2011-07-31 10:46:29 +02:00
:license: GNU GPL, see LICENSE for more details.
"""
2012-07-04 12:50:33 +02:00
from django.conf.urls.defaults import url, patterns
from agenda.views import (Overview, View, SetClosed, ItemUpdate, ItemCreate,
ItemDelete, AgendaPDF)
2011-07-31 10:46:29 +02:00
urlpatterns = patterns('',
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+)/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/$',
2012-04-14 10:54:22 +02:00
AgendaPDF.as_view(),
2012-02-20 17:46:45 +01:00
name='print_agenda',
),
2011-07-31 10:46:29 +02:00
)