Beispiel #1
0
# -*- coding: utf-8 -*-


from django.conf.urls import url
from django.utils.translation import ugettext_lazy as _
from kobo.django.views.generic import ExtraListView, ExtraDetailView
from kobo.hub.models import Worker


urlpatterns = [
    url(r"^$", ExtraListView.as_view(
        queryset=Worker.objects.order_by("name"),
        template_name="worker/list.html",
        context_object_name="worker_list",
        title = _("Workers"),
    ), name="worker/list"),
    url(r"^(?P<pk>\d+)/$", ExtraDetailView.as_view(
        queryset=Worker.objects.select_related(),
        template_name="worker/detail.html",
        context_object_name="worker",
        title=_("Worker detail"),
    ), name="worker/detail"),
]
Beispiel #2
0
# -*- coding: utf-8 -*-

from django.conf.urls import url
from kobo.django.views.generic import ExtraListView, ExtraDetailView
from kobo.hub.models import Worker
from kobo.django.compat import gettext_lazy as _

urlpatterns = [
    url(r"^$",
        ExtraListView.as_view(
            queryset=Worker.objects.order_by("name"),
            template_name="worker/list.html",
            context_object_name="worker_list",
            title=_("Workers"),
        ),
        name="worker/list"),
    url(r"^(?P<pk>\d+)/$",
        ExtraDetailView.as_view(
            queryset=Worker.objects.select_related(),
            template_name="worker/detail.html",
            context_object_name="worker",
            title=_("Worker detail"),
        ),
        name="worker/detail"),
]
Beispiel #3
0
# -*- coding: utf-8 -*-


from django.utils.translation import ugettext_lazy as _
from django.conf.urls import url
from kobo.django.views.generic import ExtraListView
from kobo.hub.views import DetailViewWithWorkers
from kobo.hub.models import Channel

urlpatterns = [
    url(r"^$", ExtraListView.as_view(
        queryset=Channel.objects.order_by("name"),
        template_name="channel/list.html",
        context_object_name="channel_list",
        title=_("Channels"),
    ), name="channel/list"),
    url(r"^(?P<pk>\d+)/$", DetailViewWithWorkers.as_view(
        model = Channel,
        template_name = "channel/detail.html",
        context_object_name = "channel",
        title = _("Architecture detail"),
    ), name="channel/detail"),
]
Beispiel #4
0
# -*- coding: utf-8 -*-

from django.utils.translation import ugettext_lazy as _
from django.conf.urls import url, patterns
from kobo.django.views.generic import ExtraListView
from kobo.hub.views import ArchDetailView
from kobo.hub.models import Arch

urlpatterns = patterns(
    "",
    url(r"^$",
        ExtraListView.as_view(
            queryset=Arch.objects.order_by("name"),
            template_name="arch/list.html",
            context_object_name="arch_list",
            title=_("Architectures"),
        ),
        name="arch/list"),
    url(r"^(?P<pk>\d+)/$", ArchDetailView.as_view(), name="arch/detail"),
)
Beispiel #5
0
# -*- coding: utf-8 -*-

from django.contrib.auth import get_user_model
from django.conf.urls import url
from django.utils.translation import ugettext_lazy as _
from kobo.django.views.generic import ExtraListView
from kobo.hub.views import UserDetailView

urlpatterns = [
    url(r"^$",
        ExtraListView.as_view(
            queryset=get_user_model().objects.order_by("username"),
            template_name="user/list.html",
            context_object_name="usr_list",
            title=_('Users'),
        ),
        name="user/list"),
    url(r"^(?P<pk>\d+)/$", UserDetailView.as_view(), name="user/detail"),
]
Beispiel #6
0
# -*- coding: utf-8 -*-


from django.utils.translation import ugettext_lazy as _
from django.conf.urls import url, patterns
from kobo.django.views.generic import ExtraListView
from kobo.hub.views import ArchDetailView
from kobo.hub.models import Arch

urlpatterns = patterns("",
    url(r"^$", ExtraListView.as_view(
        queryset=Arch.objects.order_by("name"),
        template_name="arch/list.html",
        context_object_name="arch_list",
        title=_("Architectures"),
    ), name="arch/list"),
    url(r"^(?P<pk>\d+)/$", ArchDetailView.as_view(), name="arch/detail"),
)
Beispiel #7
0
# -*- coding: utf-8 -*-


from django.contrib.auth import get_user_model
from django.conf.urls import url, patterns
from django.utils.translation import ugettext_lazy as _
from kobo.django.views.generic import ExtraListView
from kobo.hub.views import UserDetailView


urlpatterns = patterns("",
    url(r"^$", ExtraListView.as_view(
        queryset=get_user_model().objects.order_by("username"),
        template_name="user/list.html",
        context_object_name="usr_list",
        title = _('Users'),
    ), name="user/list"),
    url(r"^(?P<pk>\d+)/$", UserDetailView.as_view(), name="user/detail"),
)
Beispiel #8
0
# -*- coding: utf-8 -*-

from django.utils.translation import ugettext_lazy as _
from django.conf.urls import url, patterns
from kobo.django.views.generic import ExtraListView
from kobo.hub.views import DetailViewWithWorkers
from kobo.hub.models import Channel

urlpatterns = patterns(
    "",
    url(r"^$",
        ExtraListView.as_view(
            queryset=Channel.objects.order_by("name"),
            template_name="channel/list.html",
            context_object_name="channel_list",
            title=_("Channels"),
        ),
        name="channel/list"),
    url(r"^(?P<pk>\d+)/$",
        DetailViewWithWorkers.as_view(
            model=Channel,
            template_name="channel/detail.html",
            context_object_name="channel",
            title=_("Architecture detail"),
        ),
        name="channel/detail"),
)