Ejemplo n.º 1
0
    url(identity_specific + r'/step$',
        StepList.as_view(), name='step-list'),
    url(identity_specific + r'/step/(?P<step_id>%s)$' % uuid_match,
        Step.as_view(), name='step-detail'),


    url(identity_specific + r'/machine/(?P<machine_id>%s)/vote$' % uuid_match,
        MachineVote.as_view(), name='machine-vote'),

    url(identity_specific + r'/meta$', Meta.as_view(), name='meta-detail'),
    url(identity_specific + r'/meta/(?P<action>.*)$',
        MetaAction.as_view(), name='meta-action'),

    url(identity_specific + r'/members$',
        IdentityMembershipList.as_view(), name='identity-membership-list'),
    url(identity_specific + r'/members/(?P<group_name>%s)$' % user_match,
        IdentityMembership.as_view(), name='identity-membership-detail'),
)

public_apis = format_suffix_patterns(patterns(
    '',
    url(r'^profile$', Profile.as_view(), name='profile'),

    url(r'^group$', GroupList.as_view(), name='group-list'),
    url(r'^group/(?P<groupname>.*)$', Group.as_view()),

    url(r'^tag$', TagList.as_view(), name='tag-list'),
    url(r'^tag/(?P<tag_slug>.*)$', Tag.as_view()),

    url(r'^application$',
Ejemplo n.º 2
0
        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"
    ),
    url(identity_specific + r"/meta$", Meta.as_view(), name="meta-detail"),
    url(identity_specific + r"/meta/(?P<action>.*)$", MetaAction.as_view(), name="meta-action"),
    url(identity_specific + r"/members$", IdentityMembershipList.as_view(), name="identity-membership-list"),
    url(
        identity_specific + r"/members/(?P<group_name>(%s)$" % user_match,
        IdentityMembership.as_view(),
        name="identity-membership-detail",
    ),
)

public_apis = format_suffix_patterns(
    patterns(
        "",
        url(r"^profile$", Profile.as_view(), name="profile"),
        url(r"^group$", GroupList.as_view(), name="group-list"),
        url(r"^group/(?P<groupname>.*)$", Group.as_view()),
        url(r"^tag$", TagList.as_view(), name="tag-list"),
        url(r"^tag/(?P<tag_slug>.*)$", Tag.as_view()),
Ejemplo n.º 3
0
        (id_match, ),
        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>%s)$' % uuid_match,
        Step.as_view(),
        name='step-detail'),
    url(identity_specific + r'/machine/(?P<machine_id>%s)/vote$' % uuid_match,
        MachineVote.as_view(),
        name='machine-vote'),
    url(identity_specific + r'/meta$', Meta.as_view(), name='meta-detail'),
    url(identity_specific + r'/meta/(?P<action>.*)$',
        MetaAction.as_view(),
        name='meta-action'),
    url(identity_specific + r'/members$',
        IdentityMembershipList.as_view(),
        name='identity-membership-list'),
    url(identity_specific + r'/members/(?P<group_name>%s)$' % user_match,
        IdentityMembership.as_view(),
        name='identity-membership-detail'),
)

public_apis = format_suffix_patterns(
    patterns(
        '',
        url(r'^profile$', Profile.as_view(), name='profile'),
        url(r'^group$', GroupList.as_view(), name='group-list'),
        url(r'^group/(?P<groupname>.*)$', Group.as_view()),
        url(r'^tag$', TagList.as_view(), name='tag-list'),
        url(r'^tag/(?P<tag_slug>.*)$', Tag.as_view()),
        url(r'^application$',
Ejemplo n.º 4
0
        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'),

    url(identity_specific + r'/meta$', Meta.as_view(), name='meta-detail'),
    url(identity_specific + r'/meta/(?P<action>.*)$',
        MetaAction.as_view(), name='meta-action'),

    url(identity_specific + r'/members$',
        IdentityMembershipList.as_view(), name='identity-membership-list'),
    url(identity_specific + r'/members/(?P<group_name>(%s)$' % user_match,
        IdentityMembership.as_view(), name='identity-membership-detail'),
)

public_apis = format_suffix_patterns(patterns(
    '',
    url(r'^profile$', Profile.as_view(), name='profile'),

    url(r'^group$', GroupList.as_view(), name='group-list'),
    url(r'^group/(?P<groupname>.*)$', Group.as_view()),

    url(r'^tag$', TagList.as_view(), name='tag-list'),
    url(r'^tag/(?P<tag_slug>.*)$', Tag.as_view()),

    url(r'^application$',