-
Notifications
You must be signed in to change notification settings - Fork 0
/
urls.py
executable file
·120 lines (89 loc) · 5.56 KB
/
urls.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
from django.conf.urls.defaults import patterns, include, url
from django.views.generic.simple import redirect_to
# Uncomment the next two lines to enable the admin:
from django.contrib import admin
from FIdERWeb import views as fwpviews
from FIdERWebST import views as fwstviews
from FIdERProxyFS import proxy_config_core
import settings
admin.autodiscover()
handler404 = 'fwpviews.error404'
handler500 = 'fwpviews.error500'
urlpatterns = patterns('',
# Examples:
# url(r'^$', 'ProxyWeb.views.home', name='home'),
# url(r'^ProxyWeb/', include('ProxyWeb.foo.urls')),
# Uncomment the admin/doc line below to enable admin documentation:
#url(r'^admin/doc/', include('django.contrib.admindocs.urls')),
# Uncomment the next line to enable the admin:
#url(r'^admin/', include(admin.site.urls)),
# urls for "passive" operations, called by the main server
url(r'^datarebuild/(?P<proxy_id>\w*)/', fwpviews.proxy_rebuildall),
url(r'^data/(?P<proxy_id>\w*)/', fwpviews.proxy_read_full),
url(r'^query/(?P<proxy_id>\w*)/(?P<meta_id>\w*)/', fwpviews.proxy_perform_query),
url(r'^refreshmap/(?P<proxy_id>\w*)/(?P<meta_id>\w*)/(?P<shape_id>\w*)/', fwpviews.map_refresh_remote),
url(r'^refreshremote/(?P<proxy_id>\w*)/', fwpviews.proxy_refresh_remote),
#urls for self-ops, called by the proxy
# Field VALUE translation
url(r'^fwp/valueconv/$', fwpviews.proxy_getModels),
# Field NAME translation
url(r'^fwp/maketable/', fwpviews.proxy_create_conversion),
url(r'^fwp/maps/(?P<proxy_id>\w*)/(?P<meta_id>\w*)/(?P<shape_id>\w*)', fwpviews.proxy_loadmap),
#OLDurl(r'^fwp/conversion/(?P<proxy_id>\w*)/(?P<meta_id>\w*)/(?P<shape_id>\w*)', fwpviews.component_shapefile_table),
(r'^fwp/conversion/(?P<proxy_id>\w*)/(?P<meta_id>\w*)/(?P<shape_id>\w*)', fwpviews.getConversionInfo),
url(r'^fwp/upload/(?P<proxy_id>\w*)/(?P<meta_id>\w*)/(?P<shape_id>\w*)/', fwpviews.proxy_uploadmap),
url(r'^fwp/upload/(?P<proxy_id>\w*)/(?P<meta_id>\w*)/$', fwpviews.proxy_uploadmap),
url(r'^fwp/download/(?P<proxy_id>\w*)/(?P<meta_id>\w*)/(?P<shape_id>\w*)/', fwpviews.proxy_uploadwfs),
url(r'^fwp/download/(?P<proxy_id>\w*)/(?P<meta_id>\w*)/$', fwpviews.proxy_uploadwfs),
url(r'^fwp/ftpdload/(?P<proxy_id>\w*)/(?P<meta_id>\w*)/$', fwpviews.proxy_uploadftp),
url(r'^fwp/rebuild/(?P<proxy_id>\w*)/(?P<meta_id>\w*)/(?P<shape_id>\w*)/', fwpviews.proxy_rebuildmap),
url(r'^fwp/reconvert/(?P<proxy_id>\w*)/(?P<meta_id>\w*)/(?P<map_id>\w*)/', fwpviews.proxy_reconvert_map),
url(r'^fwp/control/', fwpviews.proxy_controller),
url(r'^fwp/proxylist/', fwpviews.proxy_get_all),
url(r'^fwp/create/', fwpviews.proxy_create_new),
url(r'^fwp/newqueryconn/', fwpviews.probePostGIS),
url(r'^fwp/reviewqueryconn/(?P<proxy_id>\w*)/(?P<meta_id>\w*)/(?P<map_id>\w*)/$', fwpviews.reviewPostGIS),
url(r'^fwp/registerquery/(?P<proxy_id>\w*)/(?P<meta_id>\w*)/$', fwpviews.registerquery),
url(r'^fwp/maplist/(?P<proxy_id>\w*)/$', fwpviews.proxy_maps_list),
#urls for active operations, called by the clients
#old proxy pages,to be removed
#url(r'^fwp/proxy/(?P<proxy_id>\w*)/$', fwpviews.proxypage),
url(r'^fwp/get/(?P<proxy_id>\w*)/(?P<meta_id>\.?\w*)/(?P<map_id>\w*)/$', fwpviews.proxy_getSingleMap),
#url(r'^fwp/proxy/(?P<proxy_id>\w*)/(?P<meta_id>\w*)/$', fwpviews.metapage),
#url(r'^fwp/proxy/(?P<proxy_id>\w*)/(?P<meta_id>\.st)/$', fwpviews.metapage),
#url(r'^fwp/$', fwpviews.proxysel),
# standalone tool v2
url(r'^fwst/upload/(?P<proxy_id>\w*)/$', fwstviews.uploadfile),
url(r'^fwst/maps/(?P<proxy_id>\w*)/(?P<map_id>\w*)/$', fwstviews.loadSTMap),
url(r'^fwst/save/(?P<proxy_id>\w*)/(?P<map_id>\w*)/$', fwstviews.saveSTMap),
url(r'^fwp/stimport', fwpviews.sideloadSTMap),
url(r'^fwst/(?P<proxy_id>\w*)/$', fwstviews.uiview),
# same as before but with a preloaded map from the proxy federated selection
url(r'^fwst/(?P<proxy_id>\w*)/(?P<meta_id>\w*)/(?P<shape_id>\w*)/$', fwstviews.uiview),
url(r'^fwst/(?P<proxy_id>\w*)/(?P<meta_id>\.st)/(?P<shape_id>\w*)/$', fwstviews.uiview),
url(r'^external/(?P<path>.*)$', fwpviews.geosearch),
url(r'^fwp/fed/owners/$', fwpviews.getProviders),
url(r'^fwp/fed/settings/$', redirect_to, {'url': proxy_config_core.URL_CONFIG}),
#url(r'', redirect_to, {'url': "/fwp/"})
url(r'^fwp/proxyng/(?P<proxy_id>\w*)/$', fwpviews.proxypageng),
url(r'^fwp/visng/(?P<vismode>\w*)/(?P<proxy_id>\w*)/$', fwstviews.mapvisng),
url(r'^fwp/visng/(?P<vismode>\w*)/(?P<proxy_id>\w*)/(?P<meta_id>\.?\w*)/(?P<map_id>\w*)/$', fwstviews.mapvisng),
url(r'^fwst/saveng/(?P<proxy_id>\w*)/(?P<meta_id>\.?\w*)/(?P<map_id>\w*)/$', fwstviews.saveVisMap),
url(r'^fwp/selng/', fwpviews.proxyselng),
url(r'^fwp/createng/', fwpviews.proxy_create_adv),
url(r'^fwp/contacts/(?P<proxy_id>\w*)/$', fwpviews.getProxyContacts),
url(r'^fwp/staticdl/(?P<proxy_id>\w*)/(?P<meta_id>\.?\w*)/(?P<map_id>\w*)/$', fwstviews.downloadStaticMap),
url(r'^fwp/staticdl/$', fwstviews.downloadStaticMap),
url(r'^fwp/getng/(?P<proxy_id>\w*)/(?P<meta_id>\.?\w*)/(?P<map_id>\w*)/(?P<getflag>\w*)/$', fwpviews.proxy_getmapng),
url(r'^fwp/getng/(?P<proxy_id>\w*)/(?P<meta_id>\.?\w*)/(?P<map_id>\w*)/$', fwpviews.proxy_getmapng),
url(r'^fwp/miniget/(?P<proxy_id>\w*)/(?P<meta_id>\.?\w*)/(?P<map_id>\w*)/$', fwpviews.proxy_getnaked),
url(r'^fwp/getmodelng/(?P<proxy_id>\w*)/(?P<meta_id>\.?\w*)/(?P<map_id>\w*)/$', fwpviews.proxy_getmapmodelng),
url(r'^fwp/savecontactsng/(?P<proxy_id>\w*)/$', fwpviews.proxy_saveContacts),
url(r'^fwp/getcontacts/(?P<proxy_id>\w*)/$', fwpviews.proxy_getcontacts)
)
if settings.DEBUG:
urlpatterns += patterns('',
url(r'^static/(?P<path>.*)$', 'django.views.static.serve', {
'document_root': settings.MEDIA_ROOT,
}),
)