Remove ckan.authz
It has been removed in CKAN 2.0, trying to import it makes CKAN crash on startup. This means that get_top_packages() is broken, and needs to be rewritten to work with CKAN 2.0. At least by removing the import the plugin can be loaded and its other functions used but if you try to use get_top_packages() it will crash.
This commit is contained in:
parent
e6bf938054
commit
ffa86c010d
|
@ -3,7 +3,6 @@ from sqlalchemy.sql import select, text
|
||||||
from sqlalchemy import func
|
from sqlalchemy import func
|
||||||
|
|
||||||
import ckan.model as model
|
import ckan.model as model
|
||||||
from ckan.authz import Authorizer
|
|
||||||
from ckan.model.authz import PSEUDO_USER__VISITOR
|
from ckan.model.authz import PSEUDO_USER__VISITOR
|
||||||
from ckan.lib.base import *
|
from ckan.lib.base import *
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue