From 832f1f53c6f3bd4e1323df728f8fe974df6f5dc4 Mon Sep 17 00:00:00 2001 From: substantialnoninfringinguser Date: Wed, 13 May 2009 05:34:33 +0100 Subject: [svn] 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 Copied from http://cucc@cucc.survex.com/svn/trunk/expoweb/troggle/, rev. 8172 by julian @ 1/17/2009 11:25 PM --- urls.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'urls.py') diff --git a/urls.py b/urls.py index fd00e46..7ef7bd6 100644 --- a/urls.py +++ b/urls.py @@ -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[^/]+)/?(?P[^/])$', ent), #(r'^cave/(?P[^/]+)/edit/$', edit_cave), (r'^cavesearch', caveSearch), - + (r'^survex/(?P.*)\.index$', index), (r'^survex/(?P.*)\.svx$', svx), (r'^survex/(?P.*)\.3d$', threed), @@ -36,6 +37,10 @@ urlpatterns = patterns('', (r'^site_media/(?P.*)$', 'django.views.static.serve', {'document_root': settings.MEDIA_ROOT, 'show_indexes': True}), + (r'^survey_files/listdir/(?P.*)$', view_surveys.listdir), + (r'^survey_files/download/(?P.*)$', view_surveys.download), + #(r'^survey_files/upload/(?P.*)$', view_surveys.upload), + (r'^survey_scans/(?P.*)$', 'django.views.static.serve', {'document_root': settings.SURVEYS, 'show_indexes':True}), -- cgit v1.2.3