From ffa86c010d5d25fa1881c6b915e48f3b44657612 Mon Sep 17 00:00:00 2001 From: Sean Hammond Date: Thu, 20 Dec 2012 21:30:41 +0000 Subject: [PATCH] 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. --- ckanext/googleanalytics/dbutil.py | 1 - 1 file changed, 1 deletion(-) diff --git a/ckanext/googleanalytics/dbutil.py b/ckanext/googleanalytics/dbutil.py index 283d9f4..5029191 100644 --- a/ckanext/googleanalytics/dbutil.py +++ b/ckanext/googleanalytics/dbutil.py @@ -3,7 +3,6 @@ from sqlalchemy.sql import select, text from sqlalchemy import func import ckan.model as model -from ckan.authz import Authorizer from ckan.model.authz import PSEUDO_USER__VISITOR from ckan.lib.base import *