mirror of
https://expo.survex.com/repositories/expoweb/.git/
synced 2025-12-12 00:27:57 +00:00
[svn r8172] Modifications to allow survey files to be pulled from another server. By providing directory listing and download functions,. which could also be used by tunnel
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
from django.conf.urls.defaults import *
|
||||
from expo.views import *
|
||||
import expo.view_surveys as view_surveys
|
||||
import troggle.settings as settings
|
||||
from django.contrib import admin
|
||||
admin.autodiscover()
|
||||
@@ -12,7 +13,7 @@ urlpatterns = patterns('',
|
||||
(r'^cave/(?P<cave_id>[^/]+)/?(?P<ent_letter>[^/])$', ent),
|
||||
#(r'^cave/(?P<cave_id>[^/]+)/edit/$', edit_cave),
|
||||
(r'^cavesearch', caveSearch),
|
||||
|
||||
|
||||
(r'^survex/(?P<survex_file>.*)\.index$', index),
|
||||
(r'^survex/(?P<survex_file>.*)\.svx$', svx),
|
||||
(r'^survex/(?P<survex_file>.*)\.3d$', threed),
|
||||
@@ -36,6 +37,10 @@ urlpatterns = patterns('',
|
||||
(r'^site_media/(?P<path>.*)$', 'django.views.static.serve',
|
||||
{'document_root': settings.MEDIA_ROOT, 'show_indexes': True}),
|
||||
|
||||
(r'^survey_files/listdir/(?P<path>.*)$', view_surveys.listdir),
|
||||
(r'^survey_files/download/(?P<path>.*)$', view_surveys.download),
|
||||
#(r'^survey_files/upload/(?P<path>.*)$', view_surveys.upload),
|
||||
|
||||
(r'^survey_scans/(?P<path>.*)$', 'django.views.static.serve',
|
||||
{'document_root': settings.SURVEYS, 'show_indexes':True}),
|
||||
|
||||
|
||||
Reference in New Issue
Block a user