fix: ⬆️ ckan spatial 2-10 support

changed the import according to spatial plugin 2.10-support branch
This commit is contained in:
Alessio Fabrizio 2024-12-11 12:24:08 +01:00
parent 5c483d60a6
commit 925db5d411
1 changed files with 6 additions and 3 deletions

View File

@ -13,8 +13,11 @@ from ckan.plugins.core import SingletonPlugin
from ckanext.spatial.lib.csw_client import CswService
from ckanext.spatial.harvesters.csw import CSWHarvester
from ckanext.spatial.harvested_metadata import ISODocument
from ckanext.spatial.harvested_metadata import ISOElement
#from ckanext.spatial.harvested_metadata import ISODocument
#from ckanext.spatial.harvested_metadata import ISOElement
#in spatial branch 2.10-support ISOObjects are located Here
from ckanext.spatial.model.harvested_metadata import ISODocument
from ckanext.spatial.model.harvested_metadata import ISOElement
from ckan.logic import ValidationError, NotFound, get_action
@ -25,7 +28,7 @@ from datetime import datetime
import xml.etree.ElementTree as ElementTree
import urllib.request
import urllib.error
from ckanext.spatial.model import ISOResourceLocator
from ckanext.spatial.model.harvested_metadata import ISOResourceLocator
import re
from urllib.parse import urlparse