Exemplo n.º 1
0
    #Machine Requests (Staff view)
    url(r'^request_image$',
        MachineRequestStaffList.as_view(), name='direct-machine-request-list'),
    url(r'^request_image/(?P<machine_request_id>\d+)$',
        MachineRequestStaff.as_view(), name='direct-machine-request-detail'),
    url(r'^request_image/(?P<machine_request_id>\d+)/(?P<action>.*)$',
        MachineRequestStaff.as_view(), name='direct-machine-request-action'),


    url(provider_specific + r'/account/(?P<username>([A-Za-z0-9]+(?:[ _-][A-Za-z0-9]+)*))$',
        Account.as_view(), name='account-management'),


    url(identity_specific + r'/image_export$',
        MachineExportList.as_view(), name='machine-export-list'),
    url(identity_specific + r'/image_export/(?P<machine_request_id>\d+)$',
        MachineExport.as_view(), name='machine-export'),

    url(identity_specific + r'/hypervisor$',
        HypervisorList.as_view(), name='hypervisor-list'),
    url(identity_specific + r'/hypervisor/(?P<hypervisor_id>\d+)$',
        HypervisorDetail.as_view(), name='hypervisor-detail'),

    url(identity_specific + r'/step$',
        StepList.as_view(), name='step-list'),
    url(identity_specific + r'/step/(?P<step_id>[a-zA-Z0-9-]+)$',
        Step.as_view(), name='step-detail'),


Exemplo n.º 2
0
     name='instance-history'),
 url(r'^api/v1/request_image/$',
     MachineRequestStaffList.as_view(),
     name='direct-machine-request-list'),
 url(r'^api/v1/request_image/(?P<machine_request_id>\d+)/$',
     MachineRequestStaff.as_view(),
     name='direct-machine-request-detail'),
 url(r'^api/v1/request_image/(?P<machine_request_id>\d+)/(?P<action>.*)/$',
     MachineRequestStaff.as_view(),
     name='direct-machine-request-action'),
 url(r'^api/v1/provider/(?P<provider_id>\d+)/account/(?P<username>([A-Za-z0-9]+(?:[ _-][A-Za-z0-9]+)*))/$',
     Account.as_view(),
     name='account-management'),
 url(r'^api/v1/provider/(?P<provider_id>\d+)' +
     '/identity/(?P<identity_id>\d+)/image_export/$',
     MachineExportList.as_view(),
     name='machine-export-list'),
 url(r'^api/v1/provider/(?P<provider_id>\d+)' +
     '/identity/(?P<identity_id>\d+)/image_export/(?P<machine_request_id>\d+)/$',
     MachineExport.as_view(),
     name='machine-export'),
 url(r'^api/v1/provider/(?P<provider_id>\d+)' +
     '/identity/(?P<identity_id>\d+)/request_image/$',
     MachineRequestList.as_view(),
     name='machine-request-list'),
 url(r'^api/v1/provider/(?P<provider_id>\d+)' +
     '/identity/(?P<identity_id>\d+)/request_image/(?P<machine_request_id>\d+)/$',
     MachineRequest.as_view(),
     name='machine-request'),
 url(r'^api/v1/provider/(?P<provider_id>\d+)' +
     '/identity/(?P<identity_id>\d+)/profile/$',
Exemplo n.º 3
0
 url(
     r"^request_image/(?P<machine_request_id>\d+)$",
     MachineRequestStaff.as_view(),
     name="direct-machine-request-detail",
 ),
 url(
     r"^request_image/(?P<machine_request_id>\d+)/(?P<action>.*)$",
     MachineRequestStaff.as_view(),
     name="direct-machine-request-action",
 ),
 url(
     provider_specific + r"/account/(?P<username>([A-Za-z0-9]+(?:[ _-][A-Za-z0-9]+)*))$",
     Account.as_view(),
     name="account-management",
 ),
 url(identity_specific + r"/image_export$", MachineExportList.as_view(), name="machine-export-list"),
 url(
     identity_specific + r"/image_export/(?P<machine_request_id>\d+)$",
     MachineExport.as_view(),
     name="machine-export",
 ),
 url(identity_specific + r"/hypervisor$", HypervisorList.as_view(), name="hypervisor-list"),
 url(
     identity_specific + r"/hypervisor/(?P<hypervisor_id>\d+)$", HypervisorDetail.as_view(), name="hypervisor-detail"
 ),
 url(identity_specific + r"/step$", StepList.as_view(), name="step-list"),
 url(identity_specific + r"/step/(?P<step_id>[a-zA-Z0-9-]+)$", Step.as_view(), name="step-detail"),
 # TODO: Uncomment when 'voting' feature is ready.
 url(
     identity_specific + r"/machine/(?P<machine_id>[a-zA-Z0-9-]+)/vote$", MachineVote.as_view(), name="machine-vote"
 ),
Exemplo n.º 4
0
    #Machine Requests (Staff view)
    url(r'^request_image$',
        MachineRequestStaffList.as_view(), name='direct-machine-request-list'),
    url(r'^request_image/(?P<machine_request_id>\d+)$',
        MachineRequestStaff.as_view(), name='direct-machine-request-detail'),
    url(r'^request_image/(?P<machine_request_id>\d+)/(?P<action>.*)$',
        MachineRequestStaff.as_view(), name='direct-machine-request-action'),


    url(provider_specific + r'/account/(?P<username>([A-Za-z0-9]+(?:[ _-][A-Za-z0-9]+)*))$',
        Account.as_view(), name='account-management'),


    url(identity_specific + r'/image_export$',
        MachineExportList.as_view(), name='machine-export-list'),
    url(identity_specific + r'/image_export/(?P<machine_request_id>\d+)$',
        MachineExport.as_view(), name='machine-export'),

    url(identity_specific + r'/hypervisor$',
        HypervisorList.as_view(), name='hypervisor-list'),
    url(identity_specific + r'/hypervisor/(?P<hypervisor_id>\d+)$',
        HypervisorDetail.as_view(), name='hypervisor-detail'),

    url(identity_specific + r'/step$',
        StepList.as_view(), name='step-list'),
    url(identity_specific + r'/step/(?P<step_id>[a-zA-Z0-9-]+)$',
        Step.as_view(), name='step-detail'),