Beispiel #1
0
        **pattern_opts),
        IntegrationWebhookSync.as_view(),
        name='projects_integrations_webhooks_sync'),
    url((r'^(?P<project_slug>{project_slug})/integrations/create/$'.format(
        **pattern_opts)),
        IntegrationCreate.as_view(),
        name='projects_integrations_create'),
    url((r'^(?P<project_slug>{project_slug})/'
         r'integrations/(?P<integration_pk>{integer_pk})/$'.format(
             **pattern_opts)),
        IntegrationDetail.as_view(),
        name='projects_integrations_detail'),
    url((r'^(?P<project_slug>{project_slug})/'
         r'integrations/(?P<integration_pk>{integer_pk})/'
         r'exchange/(?P<exchange_pk>[-\w]+)/$'.format(**pattern_opts)),
        IntegrationExchangeDetail.as_view(),
        name='projects_integrations_exchanges_detail'),
    url((r'^(?P<project_slug>{project_slug})/'
         r'integrations/(?P<integration_pk>{integer_pk})/sync/$'.format(
             **pattern_opts)),
        IntegrationWebhookSync.as_view(),
        name='projects_integrations_webhooks_sync'),
    url((r'^(?P<project_slug>{project_slug})/'
         r'integrations/(?P<integration_pk>{integer_pk})/delete/$'.format(
             **pattern_opts)),
        IntegrationDelete.as_view(),
        name='projects_integrations_delete'),
]

urlpatterns += integration_urls
            r'^(?P<project_slug>{project_slug})/'
            r'integrations/(?P<integration_pk>{integer_pk})/sync/$'.format(
                **pattern_opts
            )
        ),
        IntegrationWebhookSync.as_view(),
        name='projects_integrations_webhooks_sync',
    ),
    url(
        (
            r'^(?P<project_slug>{project_slug})/'
            r'integrations/(?P<integration_pk>{integer_pk})/delete/$'.format(
                **pattern_opts
            )
        ),
        IntegrationDelete.as_view(),
        name='projects_integrations_delete',
    ),
]

urlpatterns += integration_urls

subproject_urls = [
    url(
        r'^(?P<project_slug>{project_slug})/subprojects/$'.format(
            **pattern_opts
        ),
        private.ProjectRelationshipList.as_view(),
        name='projects_subprojects',
    ),
    url(