-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathurls.py.remove
executable file
·102 lines (72 loc) · 4.15 KB
/
urls.py.remove
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
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/rebuild/(?P<proxy_id>\w*)/(?P<meta_id>\w*)/(?P<shape_id>\w*)/', fwpviews.proxy_rebuildmap),
#url(r'^fwp/rebuild/(?P<proxy_id>\w*)/(?P<meta_id>\w*)/', fwpviews.proxy_rebuildmeta),
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
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/"})
)
#if settings.DEBUG:
urlpatterns += patterns('',
url(r'^(?P<path>.*)$', 'django.views.static.serve', {
'document_root': settings.MEDIA_ROOT,
}),
)