Skip to content

Commit

Permalink
[Fixes GeoNode#6918] Removal of QGIS support (GeoNode#6919)
Browse files Browse the repository at this point in the history
* [Cleanup and Refactor] Remove QGIS server backend dependencies

* [Cleanup and Refactor] Remove QGIS server backend dependencies

* - Fix LGTM issues
  • Loading branch information
Alessio Fabiani authored and mattiagiupponi committed Feb 22, 2021
1 parent 45d4c2f commit dd9f224
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions geonode/maps/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@

from django.conf.urls import url, include
from django.views.generic import TemplateView
<<<<<<< HEAD
=======

from geonode import geoserver
from geonode.utils import check_ogc_backend
>>>>>>> [Fixes #6918] Removal of QGIS support (#6919)
from geonode.monitoring import register_url_event

from . import views
Expand All @@ -30,10 +36,22 @@

new_map_view = views.new_map
existing_map_view = views.map_view
<<<<<<< HEAD
map_embed = views.map_embed
map_edit = views.map_edit
map_json = views.map_json
map_thumbnail = views.map_thumbnail
=======

if check_ogc_backend(geoserver.BACKEND_PACKAGE):
new_map_view = views.new_map
existing_map_view = views.map_view
map_embed = views.map_embed
map_edit = views.map_edit
map_json = views.map_json
map_thumbnail = views.map_thumbnail

>>>>>>> [Fixes #6918] Removal of QGIS support (#6919)
maps_list = register_url_event()(TemplateView.as_view(template_name='maps/map_list.html'))

urlpatterns = [
Expand Down

0 comments on commit dd9f224

Please sign in to comment.