2011-07-31 10:46:29 +02:00
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
|
2013-01-05 01:05:38 +01:00
|
|
|
from django.conf.urls import patterns, url
|
2011-07-31 10:46:29 +02:00
|
|
|
|
2013-03-01 17:13:12 +01:00
|
|
|
from openslides.utils.views import RedirectView
|
2013-09-25 10:01:01 +02:00
|
|
|
|
2013-03-01 17:13:12 +01:00
|
|
|
from .signals import config_signal
|
|
|
|
from .views import ConfigView
|
2012-02-15 12:04:11 +01:00
|
|
|
|
2013-09-25 10:01:01 +02:00
|
|
|
urlpatterns = patterns(
|
|
|
|
'',
|
2013-03-01 17:13:12 +01:00
|
|
|
url(r'^$',
|
|
|
|
RedirectView.as_view(url_name='config_general'),
|
2013-09-25 10:01:01 +02:00
|
|
|
name='config_first_config_page')
|
2012-03-16 14:31:59 +01:00
|
|
|
)
|
2012-02-15 12:04:11 +01:00
|
|
|
|
2013-03-01 17:13:12 +01:00
|
|
|
for receiver, config_page in config_signal.send(sender='config_urls'):
|
|
|
|
if config_page.is_shown():
|
|
|
|
urlpatterns += patterns('', url(r'^%s/$' % config_page.url,
|
|
|
|
ConfigView.as_view(config_page=config_page),
|
|
|
|
name='config_%s' % config_page.url))
|