Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Tree: cb9eef0ec5
Fetching contributors…

Cannot retrieve contributors at this time

51 lines (38 sloc) 1.68 KB
# Copyright (C) 2008-2010 United States Government as represented by
# the Administrator of the National Aeronautics and Space Administration.
# All Rights Reserved.
from django.conf.urls.defaults import patterns
from geocamUtil.FileUtil import importModuleByName
from geocamLens import settings
views = importModuleByName(settings.GEOCAM_LENS_VIEW_MODULE).viewSingleton
urlpatterns = patterns(
# kml
(r'^kml/startSession.kml(?:\?[^/]*)?$', views.kmlStartSession,
{'readOnly': True}, 'geocamLens_kmlStartSession'),
(r'^kml/([^/]+)/([^/]+)\.kml$', views.kmlGetSessionResponse,
# google earth can't handle django challenge
{'challenge': 'digest',
'readOnly': True},
(r'^feed\.kml$', views.kmlFeed,
{'readOnly': True},
# features
(r'^features.json', views.featuresJson, {'readOnly': True}),
(r'^featuresJson.js', views.featuresJsonJs, {'readOnly': True}),
(r'^galleryDebug.html', views.galleryDebug, {'readOnly': True}),
(r'^photo/(?P<imgId>[^/]+)/(?:[^/]+)?$', views.viewPhoto,
{'readOnly': True}),
(r'^upload/$', views.uploadImageAuth),
# alternate URL that accepts http basic authentication, used by newer versions of GeoCam Mobile
(r'^upload-m/$', views.uploadImageAuth,
{'challenge': 'basic'}),
(r'^edit/photo/(?P<imgId>[^/]+)/$', views.editImageWrapper),
(r'^editWidget/photo/(?P<imgId>[^/]+)/$', views.editImage),
# legacy URLs, compatible with the old version of GeoCam
# Mobile *if* user authentication is off (not recommended!).
(r'^upload/(?P<userName>[^/]+)/$', views.uploadImage),
Jump to Line
Something went wrong with that request. Please try again.