fix: ⬆️ ckan spatial 2-10 support
changed the import according to spatial plugin 2.10-support branch
This commit is contained in:
parent
5c483d60a6
commit
925db5d411
|
@ -13,8 +13,11 @@ from ckan.plugins.core import SingletonPlugin
|
||||||
from ckanext.spatial.lib.csw_client import CswService
|
from ckanext.spatial.lib.csw_client import CswService
|
||||||
from ckanext.spatial.harvesters.csw import CSWHarvester
|
from ckanext.spatial.harvesters.csw import CSWHarvester
|
||||||
|
|
||||||
from ckanext.spatial.harvested_metadata import ISODocument
|
#from ckanext.spatial.harvested_metadata import ISODocument
|
||||||
from ckanext.spatial.harvested_metadata import ISOElement
|
#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
|
from ckan.logic import ValidationError, NotFound, get_action
|
||||||
|
|
||||||
|
@ -25,7 +28,7 @@ from datetime import datetime
|
||||||
import xml.etree.ElementTree as ElementTree
|
import xml.etree.ElementTree as ElementTree
|
||||||
import urllib.request
|
import urllib.request
|
||||||
import urllib.error
|
import urllib.error
|
||||||
from ckanext.spatial.model import ISOResourceLocator
|
from ckanext.spatial.model.harvested_metadata import ISOResourceLocator
|
||||||
import re
|
import re
|
||||||
from urllib.parse import urlparse
|
from urllib.parse import urlparse
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue