Ejemplo n.º 1
0
# -*- coding: utf-8 -*-

from django.conf.urls import patterns, url

from openslides.utils.views import RedirectView

from . import views

urlpatterns = patterns(
    '',
    # Redirect to dashboard URL
    url(r'^$',
        RedirectView.as_view(url='projector/dashboard/'),
        name='home',),

    url(r'^version/$',
        views.VersionView.as_view(),
        name='core_version',),

    url(r'^search/$',
        views.SearchView(),
        name='search',),
)
Ejemplo n.º 2
0
# -*- coding: utf-8 -*-

from django.conf.urls import patterns, url

from openslides.utils.views import RedirectView

from .signals import config_signal
from .views import ConfigView

urlpatterns = patterns(
    '',
    url(r'^$',
        RedirectView.as_view(url_name='config_general'),
        name='config_first_config_page')
)

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))
Ejemplo n.º 3
0
# -*- coding: utf-8 -*-

from django.conf.urls import patterns, url

from openslides.utils.views import RedirectView

from .signals import config_signal
from .views import ConfigView

urlpatterns = patterns(
    '',
    url(r'^$',
        RedirectView.as_view(url_name='config_general'),
        name='config_first_config_collection_view'))

for receiver, config_collection in config_signal.send(sender='config_urls'):
    if config_collection.is_shown():
        urlpatterns += patterns(
            '',
            url(r'^%s/$' % config_collection.url,
                ConfigView.as_view(config_collection=config_collection),
                name='config_%s' % config_collection.url))
Ejemplo n.º 4
0
    :copyright: 2011, 2012 by OpenSlides team, see AUTHORS.
    :license: GNU GPL, see LICENSE for more details.
"""

from django.conf import settings
from django.conf.urls.defaults import patterns, url, include
from django.utils.importlib import import_module

from openslides.utils.views import RedirectView

handler500 = 'openslides.utils.views.server_error'

urlpatterns = patterns('',
    # Redirect to dashboard URL
    url(r'^$', RedirectView.as_view(url='dashboard'), name='home',),

    (r'^agenda/', include('openslides.agenda.urls')),
    (r'^motion/', include('openslides.motion.urls')),
    (r'^assignment/', include('openslides.assignment.urls')),
    (r'^participant/', include('openslides.participant.urls')),
    (r'^config/', include('openslides.config.urls')),
    (r'^projector/', include('openslides.projector.urls')),
    (r'^i18n/', include('django.conf.urls.i18n')),
)

urlpatterns += patterns('django.contrib.staticfiles.views',
    url(r'^static/(?P<path>.*)$', 'serve', {'insecure': True}),
)

js_info_dict = {
Ejemplo n.º 5
0
"""
    openslides.core.urls
    ~~~~~~~~~~~~~~~~~~~~

    Url patterns for the core app.

    :copyright: 2011–2013 by OpenSlides team, see AUTHORS.
    :license: GNU GPL, see LICENSE for more details.
"""

from django.conf.urls import patterns, url

from openslides.utils.views import RedirectView
from .views import VersionView

urlpatterns = patterns(
    '',

    # Redirect to dashboard URL
    url(
        r'^$',
        RedirectView.as_view(url='projector/dashboard/'),
        name='home',
    ),
    url(
        r'^version/$',
        VersionView.as_view(),
        name='core_version',
    ),
)
Ejemplo n.º 6
0
# -*- coding: utf-8 -*-

from django.conf.urls import patterns, url

from openslides.utils.views import RedirectView

from . import views

urlpatterns = patterns(
    '',
    # Redirect to dashboard URL
    url(
        r'^$',
        RedirectView.as_view(url_name='core_dashboard'),
        name='home',
    ),
    url(r'^dashboard/$', views.DashboardView.as_view(), name='core_dashboard'),
    url(r'^dashboard/select_widgets/$',
        views.SelectWidgetsView.as_view(),
        name='core_select_widgets'),
    url(
        r'^version/$',
        views.VersionView.as_view(),
        name='core_version',
    ),
    url(
        r'^search/$',
        views.SearchView(),
        name='core_search',
    ),
Ejemplo n.º 7
0
"""

from django.conf import settings
from django.conf.urls.defaults import patterns, url, include
from django.utils.importlib import import_module

from openslides.utils.views import RedirectView

handler500 = 'openslides.utils.views.server_error'

urlpatterns = patterns(
    '',
    # Redirect to dashboard URL
    url(
        r'^$',
        RedirectView.as_view(url='dashboard'),
        name='home',
    ),
    (r'^agenda/', include('openslides.agenda.urls')),
    (r'^motion/', include('openslides.motion.urls')),
    (r'^assignment/', include('openslides.assignment.urls')),
    (r'^participant/', include('openslides.participant.urls')),
    (r'^config/', include('openslides.config.urls')),
    (r'^projector/', include('openslides.projector.urls')),
    (r'^i18n/', include('django.conf.urls.i18n')),
)

urlpatterns += patterns(
    'django.contrib.staticfiles.views',
    url(r'^static/(?P<path>.*)$', 'serve', {'insecure': True}),
)
Ejemplo n.º 8
0
# -*- coding: utf-8 -*-

from django.conf.urls import patterns, url

from openslides.utils.views import RedirectView

from . import views

urlpatterns = patterns(
    '',
    # Redirect to dashboard URL
    url(r'^$',
        RedirectView.as_view(url_name='core_dashboard'),
        name='home',),

    url(r'^dashboard/$',
        views.DashboardView.as_view(),
        name='core_dashboard'),

    url(r'^dashboard/select_widgets/$',
        views.SelectWidgetsView.as_view(),
        name='core_select_widgets'),

    url(r'^version/$',
        views.VersionView.as_view(),
        name='core_version',),

    url(r'^search/$',
        views.SearchView(),
        name='core_search',),