示例#1
0
 url(r'^(?P<project_slug>{project_slug})/integrations/$'.format(
     **pattern_opts),
     IntegrationList.as_view(),
     name='projects_integrations'),
 url(r'^(?P<project_slug>{project_slug})/integrations/sync/$'.format(
     **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(),
示例#2
0
     (
         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(