Skip to content

Commit

Permalink
added missing imports
Browse files Browse the repository at this point in the history
  • Loading branch information
t-book committed Aug 13, 2019
1 parent 1f82ee4 commit 1fe7761
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion geonode/layers/metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def set_metadata(xml):

# check if document is XML
try:
exml = dxml.fromstring(xml)
exml = dlxml.fromstring(xml)
except Exception as err:
raise GeoNodeException(
'Uploaded XML document is not XML: %s' % str(err))
Expand Down
3 changes: 2 additions & 1 deletion geonode/tests/csw.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,10 @@
import logging

from lxml import etree

from defusedxml import lxml as dlxml

from django.conf import settings

from geonode import geoserver, qgis_server
from geonode.utils import check_ogc_backend
from geonode.catalogue import get_catalogue
Expand Down
1 change: 1 addition & 0 deletions geonode/tests/integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
import gisdata
from decimal import Decimal
from defusedxml import lxml as dlxml
from lxml import etree
from urlparse import urljoin

from django.conf import settings
Expand Down

0 comments on commit 1fe7761

Please sign in to comment.