示例#1
0
urlpatterns += patterns('',
    url(r'^admin/', include(admin.site.urls)),
)

urlpatterns += format_suffix_patterns(
    patterns('rodan.views.main',
        url(r'^browse/$', 'api_root'),
        url(r'^auth/token/$', obtain_auth_token),
        url(r'^auth/session/$', SessionAuth.as_view()),
        url(r'^auth/status/$', SessionStatus.as_view()),
        url(r'^auth/logout/$', SessionClose.as_view()),
        url(r'^$', 'home'),
        url(r'^projects/$', ProjectList.as_view(), name="project-list"),
        url(r'^project/(?P<pk>[0-9a-z\-]+)/$', ProjectDetail.as_view(), name="project-detail"),
        url(r'^workflows/$', WorkflowList.as_view(), name="workflow-list"),
        url(r'^workflow/(?P<pk>[0-9a-z\-]+)/$', WorkflowDetail.as_view(), name="workflow-detail"),
        url(r'^workflowjobs/$', WorkflowJobList.as_view(), name="workflowjob-list"),
        url(r'^workflowjob/(?P<pk>[0-9a-z\-]+)/$', WorkflowJobDetail.as_view(), name="workflowjob-detail"),
        url(r'^pages/$', PageList.as_view(), name="page-list"),
        url(r'^page/(?P<pk>[0-9a-z\-]+)/$', PageDetail.as_view(), name="page-detail"),
        url(r'^jobs/$', JobList.as_view(), name="job-list"),
        url(r'^job/(?P<pk>[0-9a-z\-]+)/$', JobDetail.as_view(), name="job-detail"),
        url(r'^results/$', ResultList.as_view(), name="result-list"),
        url(r'^result/(?P<pk>[0-9a-z\-]+)/$', ResultDetail.as_view(), name="result-detail"),
        url(r'^users/$', UserList.as_view(), name="user-list"),
        url(r'^user/(?P<pk>[0-9]+)/$', UserDetail.as_view(), name="user-detail"),
        url(r'^workflowruns/$', WorkflowRunList.as_view(), name="workflowrun-list"),
        url(r'^workflowrun/(?P<pk>[0-9a-z\-]+)/$', WorkflowRunDetail.as_view(), name="workflowrun-detail"),
        url(r'^runjobs/$', RunJobList.as_view(), name="runjob-list"),
        url(r'^runjob/(?P<pk>[0-9a-z\-]+)/$', RunJobDetail.as_view(), name="runjob-detail"),
        url(r'^resultspackages/$', ResultsPackageList.as_view(), name="resultspackage-list"),
示例#2
0
     name="project-detail",
 ),
 url(
     r"^project/(?P<pk>[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})/admins/$",
     ProjectDetailAdmins.as_view(),
     name="project-detail-admins",
 ),
 url(
     r"^project/(?P<pk>[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})/workers/$",
     ProjectDetailWorkers.as_view(),
     name="project-detail-workers",
 ),
 url(r"^workflows/$", WorkflowList.as_view(), name="workflow-list"),
 url(
     r"^workflow/(?P<pk>[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})/$",
     WorkflowDetail.as_view(),
     name="workflow-detail",
 ),
 url(r"^workflowjobs/$", WorkflowJobList.as_view(), name="workflowjob-list"),
 url(
     r"^workflowjob/(?P<pk>[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})/$",
     WorkflowJobDetail.as_view(),
     name="workflowjob-detail",
 ),
 url(
     r"^workflowjobgroups/$",
     WorkflowJobGroupList.as_view(),
     name="workflowjobgroup-list",
 ),
 url(
     r"^workflowjobgroup/(?P<pk>[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})/$",
示例#3
0
文件: urls.py 项目: DDMAL/Rodan
)

# Standard URL patterns.
urlpatterns += format_suffix_patterns(
    patterns('',
             url(r'^$', APIRoot.as_view()),
             url(r'^taskqueue/active/$', TaskQueueActiveView.as_view(), name="taskqueue-active"),
             #url(r'^taskqueue/config/$', TaskQueueConfigView.as_view(), name="taskqueue-config"),
             url(r'^taskqueue/scheduled/$', TaskQueueScheduledView.as_view(), name="taskqueue-scheduled"),
             url(r'^taskqueue/status/$', TaskQueueStatusView.as_view(), name="taskqueue-status"),
             url(r'^projects/$', ProjectList.as_view(), name="project-list"),
             url(r'^project/(?P<pk>[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})/$', ProjectDetail.as_view(), name="project-detail"),
             url(r'^project/(?P<pk>[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})/admins/$', ProjectDetailAdmins.as_view(), name="project-detail-admins"),
             url(r'^project/(?P<pk>[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})/workers/$', ProjectDetailWorkers.as_view(), name="project-detail-workers"),
             url(r'^workflows/$', WorkflowList.as_view(), name="workflow-list"),
             url(r'^workflow/(?P<pk>[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})/$', WorkflowDetail.as_view(), name="workflow-detail"),
             url(r'^workflowjobs/$', WorkflowJobList.as_view(), name="workflowjob-list"),
             url(r'^workflowjob/(?P<pk>[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})/$', WorkflowJobDetail.as_view(), name="workflowjob-detail"),
             url(r'^workflowjobgroups/$', WorkflowJobGroupList.as_view(), name="workflowjobgroup-list"),
             url(r'^workflowjobgroup/(?P<pk>[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})/$', WorkflowJobGroupDetail.as_view(), name="workflowjobgroup-detail"),
             url(r'^jobs/$', JobList.as_view(), name="job-list"),
             url(r'^job/(?P<pk>[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})/$', JobDetail.as_view(), name="job-detail"),
             url(r'^users/$', UserList.as_view(), name="user-list"),
             url(r'^user/(?P<pk>[0-9\-]+)/$', UserDetail.as_view(), name="user-detail"),
             url(r'^userpreferences/$', UserPreferenceList.as_view(), name="userpreference-list"),
             url(r'^userpreference/(?P<pk>[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})/$', UserPreferenceDetail.as_view(), name="userpreference-detail"),
             url(r'^workflowruns/$', WorkflowRunList.as_view(), name="workflowrun-list"),
             url(r'^workflowrun/(?P<pk>[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})/$', WorkflowRunDetail.as_view(), name="workflowrun-detail"),
             url(r'^runjobs/$', RunJobList.as_view(), name="runjob-list"),
             url(r'^runjob/(?P<pk>[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})/$', RunJobDetail.as_view(), name="runjob-detail"),
             url(r'^resultspackages/$', ResultsPackageList.as_view(), name="resultspackage-list"),