change ckan library

This commit is contained in:
Alessio Fabrizio 2024-10-15 16:39:48 +02:00
parent cd3e9f81e9
commit 5472edd0de
3 changed files with 6 additions and 3 deletions

View File

@ -2,11 +2,12 @@
#from ckan.controllers.home import HomeController #from ckan.controllers.home import HomeController
from flask import Blueprint, render_template, g from flask import Blueprint, render_template, g
import ckan.plugins as p import ckan.plugins as p
from ckan.common import OrderedDict, _, g from ckan.common import _, g
import ckan.lib.search as search import ckan.lib.search as search
import ckan.model as model import ckan.model as model
import ckan.logic as logic import ckan.logic as logic
import ckan.lib.helpers as h import ckan.lib.helpers as h
from collections import OrderedDict
#blueprint definition #blueprint definition
d4science_home = Blueprint("d4science_home", __name__) d4science_home = Blueprint("d4science_home", __name__)

View File

@ -7,7 +7,8 @@ import ckan.logic as logic
import ckan.model as model import ckan.model as model
import ckan.lib.helpers as h import ckan.lib.helpers as h
import ckan.lib.search as search import ckan.lib.search as search
from ckan.common import OrderedDict, _, NotAuthorized, NotFound from ckan.common import _, NotAuthorized, NotFound
from collections import OrderedDict
organization_vre = Blueprint("organization_vre", __name__) organization_vre = Blueprint("organization_vre", __name__)

View File

@ -1,6 +1,6 @@
import logging import logging
import ckan.plugins as p import ckan.plugins as p
from ckan.common import OrderedDict, _ from ckan.common import _
import ckan.lib.search as search import ckan.lib.search as search
import ckan.model as model import ckan.model as model
import ckan.logic as logic import ckan.logic as logic
@ -8,6 +8,7 @@ import ckan.lib.helpers as h
from flask import Blueprint, render_template, request, g from flask import Blueprint, render_template, request, g
from ckan.lib.search import SearchError from ckan.lib.search import SearchError
from urllib.parse import urlencode from urllib.parse import urlencode
from collections import OrderedDict
d4s_type_blueprint = Blueprint('d4s_type', __name__) d4s_type_blueprint = Blueprint('d4s_type', __name__)