url(r"^nodegroup/", NodegroupView.as_view(action="exportable"), name="nodegroup"), url(r"^node_layer/(?P<graphid>%s)$" % uuid_regex, GraphDataView.as_view(action="update_node_layer"), name="node_layer"), url(r"^widgets/(?P<template>[a-zA-Z_-]*)", main.widget, name="widgets"), url(r"^report-templates/(?P<template>[a-zA-Z_-]*)", main.report_templates, name="report-templates"), url(r"^function-templates/(?P<template>[a-zA-Z_-]*)", main.function_templates, name="function-templates"), url(r"^help-templates$", main.help_templates, name="help_templates"), url(r"^tile$", TileData.as_view(action="update_tile"), name="tile"), url(r"^tiles/reorder_tiles$", TileData.as_view(action="reorder_tiles"), name="reorder_tiles"), url(r"^tiles/tile_history$", TileData.as_view(action="tile_history"), name="tile_history"), url(r"^tiles/delete_provisional_tile$", TileData.as_view(action="delete_provisional_tile"), name="delete_provisional_tile"), url(r"^tiles/download_files$", TileData.as_view(action="download_files"), name="download_files"), url(r"^templates/(?P<template>[a-zA-Z_\-./]*)", main.templates, name="templates"), url(r"^map_layer_manager/(?P<maplayerid>%s)$" % uuid_regex, MapLayerManagerView.as_view(), name="map_layer_update"), url(r"^map_layer_manager/*", MapLayerManagerView.as_view(), name="map_layer_manager"), url(r"^feature_popup_content$", main.feature_popup_content, name="feature_popup_content"), url(r"^user$", UserManagerView.as_view(), name="user_profile_manager"), url(r"^user/get_user_names$", UserManagerView.as_view(action="get_user_names"), name="get_user_names"), url(r"^notifications$", NotificationView.as_view(), name="get_notifications"), url(r"^notifications/dismiss$", NotificationView.as_view(action="dismiss"), name="dismiss_notifications"), url(r"^notifications/get_types$", NotificationView.as_view(action="get_types"), name="get_notification_types"), url(r"^notifications/update_types$", NotificationView.as_view(action="update_types"), name="update_notification_types"), url(r"^collector_manager/*", MobileSurveyManagerView.as_view(), name="collector_manager"), url(r"^collector_designer/(?P<surveyid>%s)$" % uuid_regex, MobileSurveyDesignerView.as_view(), name="collector_designer"), url( r"^mobile_survey_resources/(?P<surveyid>%s)/resources$" % uuid_regex, MobileSurveyResources.as_view(), name="mobile_survey_resources", ), url(r"^couchdb/(?P<path>.*)$", api.CouchdbProxy.as_view()), url(r"^%s/(?P<path>.*)$" % settings.KIBANA_CONFIG_BASEPATH, api.KibanaProxy.as_view()), url(r"^mobileprojects/(?:(?P<surveyid>%s))?$" % uuid_regex, api.Surveys.as_view(), name="mobileprojects"),
url(r'^node/(?P<graphid>%s)$' % uuid_regex, GraphDataView.as_view(action='update_node'), name='node'), url(r'^node_layer/(?P<graphid>%s)$' % uuid_regex, GraphDataView.as_view(action='update_node_layer'), name='node_layer'), url(r'^widgets/(?P<template>[a-zA-Z_-]*)', main.widget, name="widgets"), url(r'^report-templates/(?P<template>[a-zA-Z_-]*)', main.report_templates, name="report-templates"), url(r'^function-templates/(?P<template>[a-zA-Z_-]*)', main.function_templates, name="function-templates"), url(r'^help-templates$', main.help_templates, name="help_templates"), url(r'^tile$', TileData.as_view(action='update_tile'), name="tile"), url(r'^tiles/reorder_tiles$', TileData.as_view(action='reorder_tiles'), name='reorder_tiles'), url(r'^tiles/tile_history$', TileData.as_view(action='tile_history'), name='tile_history'), url(r'^tiles/delete_provisional_tile$', TileData.as_view(action='delete_provisional_tile'), name='delete_provisional_tile'), url(r'^templates/(?P<template>[a-zA-Z_\-./]*)', main.templates, name="templates"), url(r'^tileserver/*', tileserver.handle_request, name="tileserver"), url(r'^map_layer_manager/(?P<maplayerid>%s)$' % uuid_regex, MapLayerManagerView.as_view(), name='map_layer_update'), url(r'^map_layer_manager/*', MapLayerManagerView.as_view(), name="map_layer_manager"), url(r'^feature_popup_content$', main.feature_popup_content, name="feature_popup_content"), url(r'^user$', UserManagerView.as_view(), name="user_profile_manager"), url(r'^user/get_user_names$', UserManagerView.as_view(action='get_user_names'), name="get_user_names"), url(r'^collector_manager/*', MobileSurveyManagerView.as_view(), name="collector_manager"), url(r'^collector_designer/(?P<surveyid>%s)$' % uuid_regex, MobileSurveyDesignerView.as_view(), name='collector_designer'), url(r'^mobile_survey_resources/(?P<surveyid>%s)/resources$' % uuid_regex, MobileSurveyResources.as_view(), name='mobile_survey_resources'), url(r'^couchdb/(?P<path>.*)$', api.CouchdbProxy.as_view()), url(r'^mobileprojects/(?:(?P<surveyid>%s))?$' % uuid_regex, api.Surveys.as_view(), name='mobileprojects'), url(r'^sync/(?P<surveyid>%s|())$' % uuid_regex, api.Sync.as_view(), name='sync'), url(r'^resources/(?P<graphid>%s)/(?P<resourceid>%s|())$' % (uuid_regex, uuid_regex), api.Resources.as_view(), name='resources_graphid'), url(r'^resources/(?P<slug>[-\w]+)/(?P<resourceid>%s|())$' % uuid_regex, api.Resources.as_view(), name='resources_slug'), url(r'^resources/(?P<resourceid>%s|())$' % uuid_regex, api.Resources.as_view(), name='resources'), url(r'^rdm/concepts/(?P<conceptid>%s|())$' % uuid_regex, api.Concepts.as_view(), name='concepts'), url(r'^plugins/(?P<pluginid>%s)$' % uuid_regex, PluginView.as_view(), name='plugins'), url(r'^plugins/(?P<slug>[-\w]+)$', PluginView.as_view(), name='plugins'), url(r'^cards/(?P<resourceid>%s|())$' % uuid_regex, api.Card.as_view(), name='api_card'), url(r'^search_component_data/(?P<componentname>[-\w]+)$', api.SearchComponentData.as_view(), name='api_search_component_data'),
url(r'^report/data$', ResourceReportData.as_view(), name='report_data'), url(r'^node/(?P<graphid>%s)$' % uuid_regex, GraphDataView.as_view(action='update_node'), name='node'), url(r'^node_layer/(?P<graphid>%s)$' % uuid_regex, GraphDataView.as_view(action='update_node_layer'), name='node_layer'), url(r'^widgets/(?P<template>[a-zA-Z_-]*)', main.widget, name="widgets"), url(r'^report-templates/(?P<template>[a-zA-Z_-]*)', main.report_templates, name="report-templates"), url(r'^function-templates/(?P<template>[a-zA-Z_-]*)', main.function_templates, name="function-templates"), url(r'^help-templates$', main.help_templates, name="help_templates"), url(r'^tile$', TileData.as_view(action='update_tile'), name="tile"), url(r'^tiles/reorder_tiles$', TileData.as_view(action='reorder_tiles'), name='reorder_tiles'), url(r'^tiles/delete_provisional_tile$', TileData.as_view(action='delete_provisional_tile'), name='delete_provisional_tile'), url(r'^templates/(?P<template>[a-zA-Z_\-./]*)', main.templates, name="templates"), url(r'^tileserver/*', tileserver.handle_request, name="tileserver"), url(r'^map_layer_manager/(?P<maplayerid>%s)$' % uuid_regex, MapLayerManagerView.as_view(), name='map_layer_update'), url(r'^map_layer_manager/*', MapLayerManagerView.as_view(), name="map_layer_manager"), url(r'^feature_popup_content$', main.feature_popup_content, name="feature_popup_content"), url(r'^user$', UserManagerView.as_view(), name="user_profile_manager"), url(r'^user/get_user_names$', UserManagerView.as_view(action='get_user_names'), name="get_user_names"), url(r'^mobile_survey_resources/(?P<surveyid>%s)/resources$' % uuid_regex, MobileSurveyResources.as_view(), name='mobile_survey_resources'), url(r'^mobile_survey_manager/*', MobileSurveyManagerView.as_view(), name="mobile_survey_manager"), url(r'^couchdb/(?P<path>.*)$', api.CouchdbProxy.as_view()), url(r'^surveys$', api.Surveys.as_view(), name='surveys'), # 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/', admin.site.urls), url(r'^password_reset/$', auth_views.password_reset, name='password_reset', kwargs={"password_reset_form":ArchesPasswordResetForm}), url(r'^password_reset/done/$', auth_views.password_reset_done, name='password_reset_done'), url(r'^reset/(?P<uidb64>[0-9A-Za-z_\-]+)/(?P<token>[0-9A-Za-z]{1,13}-[0-9A-Za-z]{1,20})/$', auth_views.password_reset_confirm, name='password_reset_confirm', kwargs={"set_password_form":ArchesSetPasswordForm}), url(r'^reset/done/$', auth_views.password_reset_complete, name='password_reset_complete'),
main.function_templates, name="function-templates"), url(r'^tile$', TileData.as_view(action='update_tile'), name="tile"), url(r'^tiles/reorder_tiles$', TileData.as_view(action='reorder_tiles'), name='reorder_tiles'), url(r'^templates/(?P<template>[a-zA-Z_\-./]*)', main.templates, name="templates"), url(r'^tileserver/*', tileserver.handle_request, name="tileserver"), url(r'^map_layer_manager/(?P<maplayerid>%s)$' % uuid_regex, MapLayerManagerView.as_view(), name='map_layer_update'), url(r'^map_layer_manager/*', MapLayerManagerView.as_view(), name="map_layer_manager"), url(r'^user$', UserManagerView.as_view(), name="user_profile_manager"), url(r'^mobile_survey_resources/(?P<surveyid>%s)/resources$' % uuid_regex, MobileSurveyResources.as_view(), name='mobile_survey_resources'), url(r'^mobile_survey_manager/*', MobileSurveyManagerView.as_view(), name="mobile_survey_manager"), # 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/', admin.site.urls), ]
from fpan.views.resource import ( FPANResourceListView, FPANResourceEditLogView, FPANResourceData, FPANResourceTiles, FPANResourceCards, FPANResourceReportView, FPANRelatedResourcesView, ) uuid_regex = settings.UUID_REGEX handler500 = main.server_error urlpatterns = [ url(r'^$', main.index, name='fpan_home'), url(r'^profile', UserManagerView.as_view(), name="fpan_profile_manager"), url(r"^user$", auth.FPANUserManagerView.as_view(), name="user_profile_manager"), # url(r'^user/resource-instance-permissions', main.get_resource_instance_permissions, name='resource_instance_permissions'), url(r'^hms/home', main.hms_home, name='hms_home'), url(r'^state/home', main.state_home, name='state_home'), url(r'^regions/$', main.show_regions, name='show_regions'), url(r'^dashboard', main.fpan_dashboard, name='fpan_dashboard'), url(r'^index.htm', RedirectView.as_view(pattern_name='fpan_home', permanent=True)), url(r'^scout/signup', scout.scout_signup, name='scout_signup'), url(r'^scout/profile', scout.scout_profile, name='scout_profile'), url(r'^scouts/$', scout.scouts_dropdown, name='scouts_dropdown'), url(r'^management_areas/$', scout.management_areas_dropdown,
url(r'^consultations/search$', search.SearchView.as_view(), name="search_home_consultations"), url(r'^consultations/search/resources$', search.search_results, name="search_results"), url(r'^consultations/', include('arches.urls', namespace='consultations')), url( r'^plugins/active-consultations$', RedirectView.as_view( url='/consultations/plugins/active-consultations')), url(r'^', include('arches.urls')), # url(r'^consultations', ConsultationView.as_view(), name='consultations'), url(r'^consultations/index.htm', main.index, name='home'), url(r'^consultations/user$', UserManagerView.as_view(), name="user_profile_manager"), url(r'^filetemplate', FileTemplateView.as_view(), name='filetemplate'), url(r'^consultations/plugins/active-consultations', PluginView.as_view(), name='active-consultations'), url(r'^activeconsultations', ActiveConsultationsView.as_view(), name='activeconsultations'), url(r'^consultations/plugins/consultation-workflow', PluginView.as_view(), name='consultation-workflow'), url(r'^consultations/plugins/application-area', PluginView.as_view(), name='application-area'), url(r'^consultations/plugins/site-visit',
''' ARCHES - a program developed to inventory and manage immovable cultural heritage. Copyright (C) 2013 J. Paul Getty Trust and World Monuments Fund This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details. You should have received a copy of the GNU Affero General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. ''' from django.conf.urls import include, url from django.contrib.staticfiles.urls import staticfiles_urlpatterns from arches.app.views import concept, main, map, search, graph, tileserver from arches.app.views.admin import ReIndexResources from arches.app.views.graph import GraphManagerView, GraphSettingsView, GraphDataView, DatatypeTemplateView, CardManagerView, CardView, FormManagerView, FormView, ReportManagerView, ReportEditorView, FunctionManagerView, PermissionManagerView, PermissionDataView from arches.app.views.resource import ResourceEditorView, ResourceListView, ResourceData, ResourceCards, ResourceReportView, RelatedResourcesView, ResourceDescriptors, ResourceEditLogView from arches.app.views.concept import RDMView from arches.app.views.user import UserManagerView from arches.app.views.tile import TileData from arches.app.views.map import MapLayerManagerView from arches.app.views.mobile_survey import MobileSurveyManagerView, MobileSurveyResources from arches.app.views.auth import LoginView, SignupView, ConfirmSignupView, ChangePasswordView, GetTokenView from arches.app.models.system_settings import settings # Uncomment the next two lines to enable the admin: from django.contrib import admin admin.autodiscover()