Example #1
0
urlpatterns = [
    url(r'^file/(?P<media_type>[\w\-]+)/(?P<doc_id>[\w\-]+)/(.+)?$',
        ViewMultimediaFile.as_view(), name=ViewMultimediaFile.urlname),
    url(r'^upload_status/$', MultimediaUploadStatusView.as_view(), name=MultimediaUploadStatusView.urlname)
]

application_urls = [
    url(r'^upload/$', BulkUploadMultimediaView.as_view(), name=BulkUploadMultimediaView.urlname),
    url(r'^paths/$', ManageMultimediaPathsView.as_view(), name=ManageMultimediaPathsView.urlname),
    url(r'^paths/download/$', download_multimedia_paths, name='download_multimedia_paths'),
    url(r'^paths/update/$', update_multimedia_paths, name='update_multimedia_paths'),
    url(r'^uploaded/bulk/$', ProcessBulkUploadView.as_view(), name=ProcessBulkUploadView.urlname),
    url(r'^uploaded/image/$', ProcessImageFileUploadView.as_view(), name=ProcessImageFileUploadView.urlname),
    url(r'^uploaded/app_logo/(?P<logo_name>[\w\-]+)/$', ProcessLogoFileUploadView.as_view(),
        name=ProcessLogoFileUploadView.urlname),
    url(r'^uploaded/audio/$', ProcessAudioFileUploadView.as_view(), name=ProcessAudioFileUploadView.urlname),
    url(r'^uploaded/video/$', ProcessVideoFileUploadView.as_view(), name=ProcessVideoFileUploadView.urlname),
    url(r'^uploaded/text/$', ProcessTextFileUploadView.as_view(),
        name=ProcessTextFileUploadView.urlname),
    url(r'^uploaded/detail_print/(?P<module_unique_id>[\w-]+)/$', ProcessDetailPrintTemplateUploadView.as_view(),
        name=ProcessDetailPrintTemplateUploadView.urlname),
    url(r'^remove_logo/$', RemoveLogoView.as_view(), name=RemoveLogoView.urlname),
    url(r'^remove_print_template/$', RemoveDetailPrintTemplateView.as_view(),
        name=RemoveDetailPrintTemplateView.urlname),
    url(r'^map/$', MultimediaReferencesView.as_view(), name=MultimediaReferencesView.urlname),
]

download_urls = [
    url(r'^commcare.zip$', DownloadMultimediaZip.as_view(), name=DownloadMultimediaZip.urlname),
]
Example #2
0
        ProcessLogoFileUploadView.as_view(),
        name=ProcessLogoFileUploadView.urlname),
    url(r'^uploaded/audio/$',
        ProcessAudioFileUploadView.as_view(),
        name=ProcessAudioFileUploadView.urlname),
    url(r'^uploaded/video/$',
        ProcessVideoFileUploadView.as_view(),
        name=ProcessVideoFileUploadView.urlname),
    url(r'^uploaded/text/$',
        ProcessTextFileUploadView.as_view(),
        name=ProcessTextFileUploadView.urlname),
    url(r'^uploaded/detail_print/(?P<module_unique_id>[\w-]+)/$',
        ProcessDetailPrintTemplateUploadView.as_view(),
        name=ProcessDetailPrintTemplateUploadView.urlname),
    url(r'^remove_logo/$',
        RemoveLogoView.as_view(),
        name=RemoveLogoView.urlname),
    url(r'^remove_print_template/$',
        RemoveDetailPrintTemplateView.as_view(),
        name=RemoveDetailPrintTemplateView.urlname),
    url(r'^map/$',
        MultimediaReferencesView.as_view(),
        name=MultimediaReferencesView.urlname),
]

download_urls = [
    url(r'^commcare.zip$',
        DownloadMultimediaZip.as_view(),
        name=DownloadMultimediaZip.urlname),
]
Example #3
0
    RemoveDetailPrintTemplateView,
)

urlpatterns = [
    url(r'^file/(?P<media_type>[\w\-]+)/(?P<doc_id>[\w\-]+)/(.+)?$',
        ViewMultimediaFile.as_view(), name=ViewMultimediaFile.name),
    url(r'^upload_status/$', MultimediaUploadStatusView.as_view(), name=MultimediaUploadStatusView.name)
]

application_urls = [
    url(r'^upload/$', BulkUploadMultimediaView.as_view(), name=BulkUploadMultimediaView.name),
    url(r'^uploaded/bulk/$', ProcessBulkUploadView.as_view(), name=ProcessBulkUploadView.name),
    url(r'^uploaded/image/$', ProcessImageFileUploadView.as_view(), name=ProcessImageFileUploadView.name),
    url(r'^uploaded/app_logo/(?P<logo_name>[\w\-]+)/$', ProcessLogoFileUploadView.as_view(),
        name=ProcessLogoFileUploadView.name),
    url(r'^uploaded/audio/$', ProcessAudioFileUploadView.as_view(), name=ProcessAudioFileUploadView.name),
    url(r'^uploaded/video/$', ProcessVideoFileUploadView.as_view(), name=ProcessVideoFileUploadView.name),
    url(r'^uploaded/text/$', ProcessTextFileUploadView.as_view(),
        name=ProcessTextFileUploadView.name),
    url(r'^uploaded/detail_print/(?P<module_unique_id>[\w-]+)/$', ProcessDetailPrintTemplateUploadView.as_view(),
        name=ProcessDetailPrintTemplateUploadView.name),
    url(r'^remove_logo/$', RemoveLogoView.as_view(), name=RemoveLogoView.name),
    url(r'^remove_print_template/$', RemoveDetailPrintTemplateView.as_view(),
        name=RemoveDetailPrintTemplateView.name),
    url(r'^map/$', MultimediaReferencesView.as_view(), name=MultimediaReferencesView.name),
]

download_urls = [
    url(r'^commcare.zip$', DownloadMultimediaZip.as_view(), name=DownloadMultimediaZip.name),
]