Ejemplo n.º 1
0
from django.conf.urls import include, url

from views import ProjectDetailView, ProjectCreateView, ProjectUpdateView, \
                   ProjectDeleteView, ProjectListView, create_version


urlpatterns = [
    url(r'^create/$', ProjectCreateView.as_view(), name='project-create'),
    url(r'^list/$', ProjectListView.as_view(), name='project-list'),
    url(r'^(?P<slug>[\w-]+)/$', ProjectDetailView.as_view(), name='project-detail'),
    url(r'^(?P<slug>[\w-]+)/edit/$', ProjectUpdateView.as_view(), name='project-edit'),
    url(r'^(?P<slug>[\w-]+)/delete/$', ProjectDeleteView.as_view(), name='project-delete'),
    url(r'^(?P<slug>[\w-]+)/create-version/$', create_version, name='project-create-version'),
]
Ejemplo n.º 2
0
from django.conf.urls import include, url

from views import ProjectDetailView, ProjectCreateView, ProjectUpdateView, \
                   ProjectDeleteView, ProjectListView, create_version

urlpatterns = [
    url(r'^create/$', ProjectCreateView.as_view(), name='project-create'),
    url(r'^list/$', ProjectListView.as_view(), name='project-list'),
    url(r'^(?P<slug>[\w-]+)/$',
        ProjectDetailView.as_view(),
        name='project-detail'),
    url(r'^(?P<slug>[\w-]+)/edit/$',
        ProjectUpdateView.as_view(),
        name='project-edit'),
    url(r'^(?P<slug>[\w-]+)/delete/$',
        ProjectDeleteView.as_view(),
        name='project-delete'),
    url(r'^(?P<slug>[\w-]+)/create-version/$',
        create_version,
        name='project-create-version'),
]
Ejemplo n.º 3
0
    ApproveVersionView,
    VersionDownload,
    # Entry
    EntryDetailView,
    EntryDeleteView,
    EntryCreateView,
    EntryListView,
    EntryUpdateView,
    PendingEntryListView,
    ApproveEntryView)

urlpatterns = patterns(
    '',
    # basic app views
    url(regex='^$',
        view=ProjectListView.as_view(),
        name='home'),
    # Project management
    url(regex='^pending-project/list/$',
        view=PendingProjectListView.as_view(),
        name='pending-project-list'),
    url(regex='^approve-project/(?P<pk>\d+)/$',
        view=ApproveProjectView.as_view(),
        name='project-approve'),
    url(regex='^project/list/$',
        view=ProjectListView.as_view(),
        name='project-list'),
    url(regex='^project/(?P<pk>\d+)/$',
        view=ProjectDetailView.as_view(),
        name='project-detail'),
    url(regex='^project/delete/(?P<pk>\d+)/$',
Ejemplo n.º 4
0
     r'project/(?P<project_id>\d+)/update/$',
     ProjectUpdateView.as_view(),
     name='asset-project-update',
 ),
 url(  # 删除软件项目
     r'project/(?P<project_id>\d+)/delete/$',
     ProjectDeleteView.as_view(),
     name='asset-project-delete',
 ),
 #    url( # 项目详情
 #        r'project/(?P<project_id>\d+)/detail/', ProjectDetailView.as_view(),
 #        name='asset-project-detail',
 #       ),
 url(  # 软件项目列表
     r'project/list/$',
     ProjectListView.as_view(),
     name='asset-project-list',
 ),
 url(  # 创建机房信息
     r'idc/create/$',
     IdcCreateView.as_view(),
     name='asset-idc-create',
 ),
 url(  # 更新机房信息
     r'idc/(?P<idc_id>\d+)/update/$',
     IdcUpdateView.as_view(),
     name='asset-idc-update',
 ),
 url(  # 删除机房
     r'idc/(?P<idc_id>\d+)/delete/$',
     IdcDeleteView.as_view(),
Ejemplo n.º 5
0
from views import (
    # Project
    ProjectDetailView,
    ProjectDeleteView,
    ProjectCreateView,
    ProjectListView,
    ProjectUpdateView,
    PendingProjectListView,
    ApproveProjectView,
    ProjectBallotListView,
    custom_404)

urlpatterns = patterns(
    '',
    # basic app views
    url(regex='^$', view=ProjectListView.as_view(), name='home'),

    # Project management
    url(regex='^pending-project/list/$',
        view=PendingProjectListView.as_view(),
        name='pending-project-list'),
    url(regex='^approve-project/(?P<slug>[\w-]+)/$',
        view=ApproveProjectView.as_view(),
        name='project-approve'),
    url(regex='^project/list/$',
        view=ProjectListView.as_view(),
        name='project-list'),
    url(regex='^(?P<slug>[\w-]+)/$',
        view=ProjectDetailView.as_view(),
        name='project-detail'),
    url(regex='^(?P<slug>[\w-]+)/ballots/$',
Ejemplo n.º 6
0
"""

"""
import logging

from django.conf.urls.defaults import *
from views import WorkingGroupListView, CommissionListView, ProjectListView, DoConversionView
# This new app handles the request to the URL by responding with the view which is loaded
# from portal.plugins.gnmplutoconverter.views.py. Inside that file is a class which responsedxs to the
# request, and sends in the arguments template - the html file to view.
# name is shortcut name for the urls.

urlpatterns = patterns(
    'portal.plugins.gnmplutoconverter.views',
    url(r'^$',
        'GenericAppView',
        kwargs={'template': 'gnmplutoconverter/index.html'},
        name='index'),
    url(r'^workinggroups$',
        WorkingGroupListView.as_view(),
        name="working_groups"),
    url(r'^commissions$', CommissionListView.as_view(),
        name="commission_list"),
    url(r'^projects$', ProjectListView.as_view(), name="project_list"),
    url(r'^do_conversion$', DoConversionView.as_view(), name="do_conversion"))
Ejemplo n.º 7
0
from views import (
    # Project
    ProjectDetailView,
    ProjectDeleteView,
    ProjectCreateView,
    ProjectListView,
    ProjectUpdateView,
    PendingProjectListView,
    ApproveProjectView,
    ProjectBallotListView,
)

urlpatterns = patterns(
    "",
    # basic app views
    url(regex="^$", view=ProjectListView.as_view(), name="home"),
    # Project management
    url(regex="^pending-project/list/$", view=PendingProjectListView.as_view(), name="pending-project-list"),
    url(regex="^approve-project/(?P<slug>[\w-]+)/$", view=ApproveProjectView.as_view(), name="project-approve"),
    url(regex="^project/list/$", view=ProjectListView.as_view(), name="project-list"),
    url(regex="^(?P<slug>[\w-]+)/$", view=ProjectDetailView.as_view(), name="project-detail"),
    url(regex="^(?P<slug>[\w-]+)/ballots/$", view=ProjectBallotListView.as_view(), name="project-ballot-list"),
    url(regex="^project/(?P<slug>[\w-]+)/delete/$", view=ProjectDeleteView.as_view(), name="project-delete"),
    url(regex="^project/create/$", view=ProjectCreateView.as_view(), name="project-create"),
    url(regex="^project/(?P<slug>[\w-]+)/update/$", view=ProjectUpdateView.as_view(), name="project-update"),
)


if settings.DEBUG:
    # static files (images, css, javascript, etc.)
    urlpatterns += patterns(