Exemplo n.º 1
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),
]
Exemplo n.º 2
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),
]
Exemplo n.º 3
0
    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'),
)

download_urls = patterns('corehq.apps.hqmedia.views',
                         url(r'^commcare.zip$', DownloadMultimediaZip.as_view(), name=DownloadMultimediaZip.name),
                         )
Exemplo n.º 4
0
    "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/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"),
    url(
        r"^preview/$", MultimediaReferencesView.as_view(), name="emulator_root_url"
    ),  # hack so that we can reverse() and get back the root preview url for use in the emulator
    url(r"^preview/(?P<file_path>.+)", "media_from_path", name="media_from_path"),
)

download_urls = patterns(
    "corehq.apps.hqmedia.views",
    url(r"^commcare.zip$", DownloadMultimediaZip.as_view(), name=DownloadMultimediaZip.name),
)