from __future__ import unicode_literals from django.conf.urls import patterns, url from .api_views import ( APIStagingSourceFileView, APIStagingSourceFileImageView, APIStagingSourceListView, APIStagingSourceView ) from .views import ( SetupSourceCreateView, SetupSourceDeleteView, SetupSourceEditView, SetupSourceListView, SourceLogListView, StagingFileDeleteView, UploadInteractiveVersionView, UploadInteractiveView ) from .wizards import DocumentCreateWizard urlpatterns = patterns( '', url( r'^staging_file/(?P\d+)/(?P.+)/delete/$', StagingFileDeleteView.as_view(), name='staging_file_delete' ), url( r'^upload/document/new/interactive/(?P\d+)/$', UploadInteractiveView.as_view(), name='upload_interactive' ), url( r'^upload/document/new/interactive/$', UploadInteractiveView.as_view(), name='upload_interactive' ), url( r'^upload/document/(?P\d+)/version/interactive/(?P\d+)/$', UploadInteractiveVersionView.as_view(), name='upload_version' ), url( r'^upload/document/(?P\d+)/version/interactive/$', UploadInteractiveVersionView.as_view(), name='upload_version' ), # Setup views url( r'^setup/list/$', SetupSourceListView.as_view(), name='setup_source_list' ), url( r'^setup/(?P\d+)/edit/$', SetupSourceEditView.as_view(), name='setup_source_edit' ), url( r'^setup/(?P\d+)/logs/$', SourceLogListView.as_view(), name='setup_source_logs' ), url( r'^setup/(?P\d+)/delete/$', SetupSourceDeleteView.as_view(), name='setup_source_delete' ), url( r'^setup/(?P\w+)/create/$', SetupSourceCreateView.as_view(), name='setup_source_create' ), # Document create views url( r'^create/from/local/multiple/$', DocumentCreateWizard.as_view(), name='document_create_multiple' ), ) api_urls = patterns( '', url( r'^staging_folders/file/(?P[0-9]+)/(?P.+)/image/$', APIStagingSourceFileImageView.as_view(), name='stagingfolderfile-image-view' ), url( r'^staging_folders/file/(?P[0-9]+)/(?P.+)/$', APIStagingSourceFileView.as_view(), name='stagingfolderfile-detail' ), url( r'^staging_folders/$', APIStagingSourceListView.as_view(), name='stagingfolder-list' ), url( r'^staging_folders/(?P[0-9]+)/$', APIStagingSourceView.as_view(), name='stagingfolder-detail' ) )