2008-10-26 21:04:06 +00:00
|
|
|
from django.conf.urls.defaults import *
|
|
|
|
from expo.views import *
|
2009-01-17 23:25:59 +00:00
|
|
|
import expo.view_surveys as view_surveys
|
2008-12-08 04:28:03 +00:00
|
|
|
import troggle.settings as settings
|
2008-10-26 21:04:06 +00:00
|
|
|
from django.contrib import admin
|
|
|
|
admin.autodiscover()
|
|
|
|
|
|
|
|
urlpatterns = patterns('',
|
2009-01-16 02:47:39 +00:00
|
|
|
|
2009-01-17 07:11:01 +00:00
|
|
|
(r'^$', frontPage),
|
2008-12-13 23:17:33 +00:00
|
|
|
(r'^cave/?$', caveindex),
|
|
|
|
(r'^cave/(?P<cave_id>[^/]+)/?$', cave),
|
|
|
|
(r'^cave/(?P<cave_id>[^/]+)/?(?P<ent_letter>[^/])$', ent),
|
2008-12-08 05:10:45 +00:00
|
|
|
#(r'^cave/(?P<cave_id>[^/]+)/edit/$', edit_cave),
|
2008-12-13 23:17:33 +00:00
|
|
|
(r'^cavesearch', caveSearch),
|
2009-01-17 23:25:59 +00:00
|
|
|
|
2008-11-08 15:37:12 +00:00
|
|
|
(r'^survex/(?P<survex_file>.*)\.index$', index),
|
|
|
|
(r'^survex/(?P<survex_file>.*)\.svx$', svx),
|
|
|
|
(r'^survex/(?P<survex_file>.*)\.3d$', threed),
|
|
|
|
(r'^survex/(?P<survex_file>.*)\.log$', log),
|
|
|
|
(r'^survex/(?P<survex_file>.*)\.err$', err),
|
2008-10-27 00:36:06 +00:00
|
|
|
|
2009-01-17 19:46:05 +00:00
|
|
|
url(r'^personindex$', personindex, name="personindex"),
|
2009-01-18 15:59:37 +00:00
|
|
|
url(r'^person/(.+)$', person, name="person"),
|
2008-10-27 00:36:06 +00:00
|
|
|
|
2009-01-18 19:50:30 +00:00
|
|
|
url(r'^logbookentry/(.+)$', logbookentry, name="logbookentry"),
|
2009-01-17 19:46:05 +00:00
|
|
|
url(r'^logbooksearch/(.*)/?$', logbookSearch),
|
2008-12-08 04:28:03 +00:00
|
|
|
|
2009-01-18 15:59:37 +00:00
|
|
|
url(r'^expedition/(\d+)$', expedition, name="expedition"),
|
2009-01-18 19:50:30 +00:00
|
|
|
url(r'^personexpedition/(.+?)/(\d+)$', personexpedition, name="personexpedition"),
|
2009-01-19 00:22:54 +00:00
|
|
|
url(r'^survexblock/(.+)$', survexblock, name="survexblock"),
|
|
|
|
|
|
|
|
|
2009-01-17 19:46:05 +00:00
|
|
|
url(r'^statistics/?$', stats, name="stats"),
|
2008-10-30 13:13:35 +00:00
|
|
|
|
2009-01-15 06:22:54 +00:00
|
|
|
(r'^survey/?$', surveyindex),
|
2009-01-16 19:50:23 +00:00
|
|
|
(r'^survey/(?P<year>\d\d\d\d)\#(?P<wallet_number>\d*)$', survey),
|
2009-01-15 06:22:54 +00:00
|
|
|
|
2008-12-13 23:17:33 +00:00
|
|
|
(r'^admin/doc/?', include('django.contrib.admindocs.urls')),
|
2008-10-26 21:04:06 +00:00
|
|
|
(r'^admin/(.*)', admin.site.root),
|
|
|
|
|
2008-12-09 18:58:32 +00:00
|
|
|
(r'^site_media/(?P<path>.*)$', 'django.views.static.serve',
|
2008-12-08 04:28:03 +00:00
|
|
|
{'document_root': settings.MEDIA_ROOT, 'show_indexes': True}),
|
2008-10-26 21:04:06 +00:00
|
|
|
|
2009-01-17 23:25:59 +00:00
|
|
|
(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),
|
|
|
|
|
2009-01-15 06:22:54 +00:00
|
|
|
(r'^survey_scans/(?P<path>.*)$', 'django.views.static.serve',
|
|
|
|
{'document_root': settings.SURVEYS, 'show_indexes':True}),
|
|
|
|
|
|
|
|
|
2008-10-26 21:04:06 +00:00
|
|
|
)
|