コード例 #1
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')),
]
コード例 #2
0
    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'^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')),
]
コード例 #3
0
ファイル: urls.py プロジェクト: jmaina/commcare-hq
    ),
    url(r"^edit_module_attr/(?P<app_id>[\w-]+)/(?P<module_id>[\w-]+)/(?P<attr>[\w-]+)/$", "edit_module_attr"),
    url(
        r"^validate_module_for_build/(?P<app_id>[\w-]+)/(?P<module_id>[\w-]+)/$",
        "validate_module_for_build",
        name="validate_module_for_build",
    ),
    url(r"^commcare_profile/(?P<app_id>[\w-]+)/$", "commcare_profile"),
    url(r"^edit_commcare_profile/(?P<app_id>[\w-]+)/$", "edit_commcare_profile", name="edit_commcare_profile"),
    url(r"^edit_commcare_settings/(?P<app_id>[\w-]+)/$", "edit_commcare_settings", name="edit_commcare_settings"),
    url(r"^edit_app_langs/(?P<app_id>[\w-]+)/$", "edit_app_langs", name="edit_app_langs"),
    url(r"^edit_app_attr/(?P<app_id>[\w-]+)/(?P<attr>[\w-]+)/$", "edit_app_attr", name="edit_app_attr"),
    url(r"^edit_app_translations/(?P<app_id>[\w-]+)/$", "edit_app_translations", name="edit_app_translations"),
    url(r"^get_app_translations/$", "get_app_translations", name="get_app_translations"),
    url(r"^rearrange/(?P<app_id>[\w-]+)/(?P<key>[\w-]+)/$", "rearrange"),
    url(r"^odk/(?P<app_id>[\w-]+)/qr_code/$", "odk_qr_code"),
    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"^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"^download/(?P<app_id>[\w-]+)/$", "download_index", name="download_index"),
    url(r"^download/(?P<app_id>[\w-]+)/CommCare.ccz$", DownloadCCZ.as_view(), name=DownloadCCZ.name),
    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"^", include("custom.ucla.urls")),
)
コード例 #4
0
ファイル: urls.py プロジェクト: sheelio/commcare-hq
    url(r'^get_app_translations/$', 'get_app_translations', name='get_app_translations'),
    url(r'^rearrange/(?P<app_id>[\w-]+)/(?P<key>[\w-]+)/$', 'rearrange'),

    url(r'^odk/(?P<app_id>[\w-]+)/qr_code/$', 'odk_qr_code'),
    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'^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'^', include('custom.ucla.urls')),
)