Skip to content

Commit

Permalink
[#4801] Don't import stuff from the old controllers
Browse files Browse the repository at this point in the history
  • Loading branch information
amercader committed Nov 28, 2019
1 parent 9851dd3 commit 5a6e7ad
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ckan/views/admin.py
Expand Up @@ -2,7 +2,7 @@

import logging

from ckan.controllers.home import CACHE_PARAMETERS
from ckan.views.home import CACHE_PARAMETERS
from flask import Blueprint
from flask.views import MethodView

Expand Down
2 changes: 1 addition & 1 deletion ckan/views/dataset.py
Expand Up @@ -19,7 +19,7 @@
import ckan.model as model
import ckan.plugins as plugins
from ckan.common import _, config, g, request
from ckan.controllers.home import CACHE_PARAMETERS
from ckan.views.home import CACHE_PARAMETERS
from ckan.lib.plugins import lookup_package_plugin
from ckan.lib.render import TemplateNotFound
from ckan.lib.search import SearchError, SearchQueryError, SearchIndexError
Expand Down
3 changes: 3 additions & 0 deletions ckan/views/home.py
Expand Up @@ -10,6 +10,9 @@

from ckan.common import g, config, _

CACHE_PARAMETERS = ['__cache', '__no_cache__']


home = Blueprint(u'home', __name__)


Expand Down
2 changes: 1 addition & 1 deletion ckan/views/resource.py
Expand Up @@ -16,7 +16,7 @@
import ckan.model as model
import ckan.plugins as plugins
from ckan.common import _, g, request
from ckan.controllers.home import CACHE_PARAMETERS
from ckan.views.home import CACHE_PARAMETERS
from ckan.views.dataset import (
_get_pkg_template, _get_package_type, _setup_template_variables
)
Expand Down

0 comments on commit 5a6e7ad

Please sign in to comment.