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:
Sean Hammond 2012-12-20 21:30:41 +00:00
parent e6bf938054
commit ffa86c010d
1 changed files with 0 additions and 1 deletions

View File

@ -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 *