示例#1
0
    url(r'^revert/(?P<app_id>[\w-]+)/$', revert_to_copy,
        name='revert_to_copy'),
    url(r'^delete_copy/(?P<app_id>[\w-]+)/$', delete_copy, name='delete_copy'),
    url(r'^api/list_apps/$', list_apps, name='list_apps'),
    url(r'^api/download_ccz/$', direct_ccz, name='direct_ccz'),
    url(r'^download/(?P<app_id>[\w-]+)/$',
        download_index,
        name='download_index'),
    url(r'^build_profile/(?P<build_id>[\w-]+)/toggle/(?P<build_profile_id>[\w-]+)$',
        toggle_build_profile,
        name='toggle_build_profile'),
    # the order of these download urls is important
    url(r'^download/(?P<app_id>[\w-]+)/CommCare.ccz$',
        DownloadCCZ.as_view(),
        name=DownloadCCZ.name),
    url(r'^download/(?P<app_id>[\w-]+)/multimedia/',
        include(media_download_urls)),
    url(r'^download/(?P<app_id>[\w-]+)/(?P<path>.*)$',
        download_file,
        name='app_download_file'),
    url(r'^download/(?P<app_id>[\w-]+)/',
        include('corehq.apps.app_manager.download_urls')),
    url(r'^diff/(?P<first_app_id>[\w-]+)/(?P<second_app_id>[\w-]+)/$',
        AppDiffView.as_view(),
        name=AppDiffView.urlname),
    url(r'existing_case_types',
        ExistingCaseTypesView.as_view(),
        name=ExistingCaseTypesView.urlname),
    url(r'^', include('custom.ucla.urls')),
]
示例#2
0
    url(r'^odk/(?P<app_id>[\w-]+)/qr_code/$', odk_qr_code, name='odk_qr_code'),
    url(r'^odk/(?P<app_id>[\w-]+)/media_qr_code/$', odk_media_qr_code, name='odk_media_qr_code'),
    url(r'^odk/(?P<app_id>[\w-]+)/install/$', odk_install, name="odk_install"),
    url(r'^odk/(?P<app_id>[\w-]+)/media_install/$', odk_install, {'with_media': True}, name="odk_media_install"),

    url(r'^odk/(?P<app_id>[\w-]+)/short_url/$', short_url, name='short_url'),
    url(r'^odk/(?P<app_id>[\w-]+)/short_odk_media_url/$', short_odk_url, {'with_media': True}),
    url(r'^odk/(?P<app_id>[\w-]+)/short_odk_url/$', short_odk_url),

    url(r'^save/(?P<app_id>[\w-]+)/$', save_copy, name='save_copy'),
    url(r'^revert/(?P<app_id>[\w-]+)/$', revert_to_copy, name='revert_to_copy'),
    url(r'^delete_copy/(?P<app_id>[\w-]+)/$', delete_copy, name='delete_copy'),

    url(r'^api/list_apps/$', list_apps, name='list_apps'),
    url(r'^api/download_ccz/$', direct_ccz, name='direct_ccz'),
    url(r'^download/(?P<app_id>[\w-]+)/$', download_index, name='download_index'),
    # the order of these download urls is important
    url(r'^download/(?P<app_id>[\w-]+)/CommCare.ccz$', DownloadCCZ.as_view(),
        name=DownloadCCZ.name),
    url(r'^download/(?P<app_id>[\w-]+)/multimedia/', include(media_download_urls)),
    url(r'^download/(?P<app_id>[\w-]+)/(?P<path>.*)$', download_file,
        name='app_download_file'),
    url(r'^download/(?P<app_id>[\w-]+)/',
        include('corehq.apps.app_manager.download_urls')),
    url(r'^ng_template/(?P<template>[\w-]+)', DynamicTemplateView.as_view(), name='ng_template'),

    url(r'^diff/(?P<first_app_id>[\w-]+)/(?P<second_app_id>[\w-]+)/$', AppDiffView.as_view(), name=AppDiffView.urlname),

    url(r'^', include('custom.ucla.urls')),
]
示例#3
0
    url(r'^odk/(?P<app_id>[\w-]+)/media_qr_code/$', 'odk_media_qr_code'),
    url(r'^odk/(?P<app_id>[\w-]+)/install/$', 'odk_install', name="odk_install"),
    url(r'^odk/(?P<app_id>[\w-]+)/media_install/$', 'odk_install', {'with_media': True}, name="odk_media_install"),

    url(r'^odk/(?P<app_id>[\w-]+)/short_url/$', 'short_url'),
    url(r'^odk/(?P<app_id>[\w-]+)/short_odk_media_url/$', 'short_odk_url', {'with_media': True}),
    url(r'^odk/(?P<app_id>[\w-]+)/short_odk_url/$', 'short_odk_url'),

    url(r'^save/(?P<app_id>[\w-]+)/$', 'save_copy'),
    url(r'^revert/(?P<app_id>[\w-]+)/$', 'revert_to_copy'),
    url(r'^delete_copy/(?P<app_id>[\w-]+)/$', 'delete_copy'),

    url(r'^api/list_apps/$', 'list_apps', name='list_apps'),
    url(r'^api/download_ccz/$', 'direct_ccz', name='direct_ccz'),
    url(r'^download/(?P<app_id>[\w-]+)/$', 'download_index', name='download_index'),
    # the order of these download urls is important
    url(r'^download/(?P<app_id>[\w-]+)/CommCare.ccz$', DownloadCCZ.as_view(),
        name=DownloadCCZ.name),
    url(r'^download/(?P<app_id>[\w-]+)/multimedia/', include(media_download_urls)),
    url(r'^download/(?P<app_id>[\w-]+)/(?P<path>.*)$', 'download_file',
        name='app_download_file'),
    url(r'^download/(?P<app_id>[\w-]+)/',
        include('corehq.apps.app_manager.download_urls')),
    url(r'^formdefs/(?P<app_id>[\w-]+)/', 'formdefs', name='formdefs'),
    url(r'^ng_template/(?P<template>[\w-]+)', DynamicTemplateView.as_view(), name='ng_template'),

    url(r'^diff/(?P<first_app_id>[\w-]+)/(?P<second_app_id>[\w-]+)/$', AppDiffView.as_view(), name=AppDiffView.urlname),

    url(r'^', include('custom.ucla.urls')),
)