示例#1
0
    url(r'^$', patchwork.views.base.projects, name='root'),
    url(r'^project/(?P<project_id>[^/]+)/list/$',
        patchwork.views.patch.list,
        name='patch_list'),
    url(r'^project/(?P<project_id>[^/]+)/patches/$',
        patchwork.views.patch.list,
        name='patches_list'),
    url(r'^project/(?P<project_id>[^/]+)/$',
        patchwork.views.project.project,
        name='project'),

    # series views
    url(r'^project/(?P<project>[^/]+)/series/$',
        SeriesListView.as_view(),
        name='series_list'),
    url(r'^series/(?P<series>\d+)/$', SeriesView.as_view(), name='series'),

    # patch views
    url(r'^patch/(?P<patch_id>\d+)/$',
        patchwork.views.patch.patch,
        name='patch'),
    url(r'^patch/(?P<patch_id>\d+)/raw/$',
        patchwork.views.patch.content,
        name='patch_content'),
    url(r'^patch/(?P<patch_id>\d+)/mbox/$',
        patchwork.views.patch.mbox,
        name='patch_mbox'),
    url(r'^patch/msgid/(?P<msgid>[^/]+)/$',
        patchwork.views.patch.msgid,
        name='patch_msgid'),
示例#2
0
    (r'^api/1.0/', include(patch_results_router.urls)),
    (r'^api/1.0/', include(event_router.urls)),

    # project view:
    url(r'^$', 'patchwork.views.projects', name='root'),
    (r'^project/(?P<project_id>[^/]+)/list/$', 'patchwork.views.patch.list'),
    url(r'^project/(?P<project_id>[^/]+)/patches/$',
        'patchwork.views.patch.list',
        name='patches_list'),
    (r'^project/(?P<project_id>[^/]+)/$', 'patchwork.views.project.project'),

    # series views
    url(r'^project/(?P<project>[^/]+)/series/$',
        SeriesListView.as_view(),
        name='series_list'),
    (r'^series/(?P<series>\d+)/$', SeriesView.as_view()),

    # patch views
    (r'^patch/(?P<patch_id>\d+)/$', 'patchwork.views.patch.patch'),
    (r'^patch/(?P<patch_id>\d+)/raw/$', 'patchwork.views.patch.content'),
    (r'^patch/(?P<patch_id>\d+)/mbox/$', 'patchwork.views.patch.mbox'),
    (r'^patch/msgid/(?P<msgid>[^/]+)/$', 'patchwork.views.patch.msgid'),

    # logged-in user stuff
    url(r'^user/$', 'patchwork.views.user.profile', name='user'),
    (r'^user/todo/$', 'patchwork.views.user.todo_lists'),
    (r'^user/todo/(?P<project_id>[^/]+)/$', 'patchwork.views.user.todo_list'),
    (r'^user/bundles/$', 'patchwork.views.bundle.bundles'),
    (r'^user/link/$', 'patchwork.views.user.link'),
    (r'^user/unlink/(?P<person_id>[^/]+)/$', 'patchwork.views.user.unlink'),
示例#3
0
    (r'^api/1.0/', include(revision_results_router.urls)),
    (r'^api/1.0/', include(patches_router.urls)),
    (r'^api/1.0/', include(patch_results_router.urls)),
    (r'^api/1.0/', include(event_router.urls)),

    # project views:
    url(r'^$', 'patchwork.views.projects', name='root'),
    (r'^project/(?P<project_id>[^/]+)/list/$', 'patchwork.views.patch.list'),
    url(r'^project/(?P<project_id>[^/]+)/patches/$',
        'patchwork.views.patch.list', name='patches_list'),
    (r'^project/(?P<project_id>[^/]+)/$', 'patchwork.views.project.project'),

    # series views
    url(r'^project/(?P<project>[^/]+)/series/$', SeriesListView.as_view(),
        name='series_list'),
    url(r'^series/(?P<series>\d+)/$', SeriesView.as_view(), name='series'),

    # patch views
    (r'^patch/(?P<patch_id>\d+)/$', 'patchwork.views.patch.patch'),
    (r'^patch/(?P<patch_id>\d+)/raw/$', 'patchwork.views.patch.content'),
    (r'^patch/(?P<patch_id>\d+)/mbox/$', 'patchwork.views.patch.mbox'),
    (r'^patch/msgid/(?P<msgid>[^/]+)/$', 'patchwork.views.patch.msgid'),

    # project bundles
    url(r'^project/(?P<project_id>[^/]+)/bundles/$',
        'patchwork.views.bundle.bundles', name='bundle_list'),

    # logged-in user stuff
    url(r'^user/$', 'patchwork.views.user.profile', name='user'),
    (r'^user/todo/$', 'patchwork.views.user.todo_lists'),
    (r'^user/todo/(?P<project_id>[^/]+)/$', 'patchwork.views.user.todo_list'),
示例#4
0
 (r"^api/1.0/", include(project_router.urls)),
 (r"^api/1.0/", include(series_list_router.urls)),
 (r"^api/1.0/", include(series_router.urls)),
 (r"^api/1.0/", include(revisions_router.urls)),
 (r"^api/1.0/", include(revision_results_router.urls)),
 (r"^api/1.0/", include(patches_router.urls)),
 (r"^api/1.0/", include(patch_results_router.urls)),
 (r"^api/1.0/", include(event_router.urls)),
 # project view:
 url(r"^$", "patchwork.views.projects", name="root"),
 (r"^project/(?P<project_id>[^/]+)/list/$", "patchwork.views.patch.list"),
 url(r"^project/(?P<project_id>[^/]+)/patches/$", "patchwork.views.patch.list", name="patches_list"),
 (r"^project/(?P<project_id>[^/]+)/$", "patchwork.views.project.project"),
 # series views
 url(r"^project/(?P<project>[^/]+)/series/$", SeriesListView.as_view(), name="series_list"),
 (r"^series/(?P<series>\d+)/$", SeriesView.as_view()),
 # patch views
 (r"^patch/(?P<patch_id>\d+)/$", "patchwork.views.patch.patch"),
 (r"^patch/(?P<patch_id>\d+)/raw/$", "patchwork.views.patch.content"),
 (r"^patch/(?P<patch_id>\d+)/mbox/$", "patchwork.views.patch.mbox"),
 (r"^patch/msgid/(?P<msgid>[^/]+)/$", "patchwork.views.patch.msgid"),
 # logged-in user stuff
 url(r"^user/$", "patchwork.views.user.profile", name="user"),
 (r"^user/todo/$", "patchwork.views.user.todo_lists"),
 (r"^user/todo/(?P<project_id>[^/]+)/$", "patchwork.views.user.todo_list"),
 (r"^user/bundles/$", "patchwork.views.bundle.bundles"),
 (r"^user/link/$", "patchwork.views.user.link"),
 (r"^user/unlink/(?P<person_id>[^/]+)/$", "patchwork.views.user.unlink"),
 # password change
 url(r"^user/password-change/$", auth_views.password_change, name="password_change"),
 url(r"^user/password-change/done/$", auth_views.password_change_done, name="password_change_done"),