Exemplo n.º 1
0
    DownloadMultimediaZip,
    BulkUploadMultimediaView,
    ProcessBulkUploadView,
    MultimediaUploadStatusView,
    ViewMultimediaFile,
    MultimediaReferencesView,
    ProcessImageFileUploadView,
    ProcessAudioFileUploadView,
    ProcessVideoFileUploadView,
    ProcessLogoFileUploadView,
)

urlpatterns = patterns('corehq.apps.hqmedia.views',
    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 = patterns('corehq.apps.hqmedia.views',
    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'^map/$', MultimediaReferencesView.as_view(), name=MultimediaReferencesView.name),
    url(r'^search/$', 'search_for_media', name='hqmedia_search'),
    url(r'^choose/$', 'choose_media', name='hqmedia_choose_media'),
    url(r'^urls/$', 'media_urls', name='hqmedia_media_urls'),
)
Exemplo n.º 2
0
    ProcessLogoFileUploadView,
    ProcessTextFileUploadView,
    ProcessVideoFileUploadView,
    RemoveDetailPrintTemplateView,
    RemoveLogoView,
    ViewMultimediaFile,
    download_multimedia_paths,
    update_multimedia_paths,
)

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,
Exemplo n.º 3
0
    ViewMultimediaFile,
    MultimediaReferencesView,
    ProcessImageFileUploadView,
    ProcessAudioFileUploadView,
    ProcessVideoFileUploadView,
    ProcessLogoFileUploadView,
    ProcessTextFileUploadView,
    ProcessDetailPrintTemplateUploadView,
    RemoveLogoView,
    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),