Do not use pylons
This commit is contained in:
parent
1b6e26f5ce
commit
83f40f6a0f
|
@ -20,8 +20,7 @@ import ckan.plugins.toolkit as tk
|
||||||
|
|
||||||
from ckan.exceptions import CkanVersionException
|
from ckan.exceptions import CkanVersionException
|
||||||
|
|
||||||
import ckanext.googleanalytics.commands as commands
|
DEFAULT_RESOURCE_URL_TAG = "/downloads/"
|
||||||
|
|
||||||
|
|
||||||
log = logging.getLogger(__name__)
|
log = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
@ -101,7 +100,7 @@ class GoogleAnalyticsPlugin(GAMixinPlugin, p.SingletonPlugin):
|
||||||
if "googleanalytics_resource_prefix" not in config:
|
if "googleanalytics_resource_prefix" not in config:
|
||||||
config[
|
config[
|
||||||
"googleanalytics_resource_prefix"
|
"googleanalytics_resource_prefix"
|
||||||
] = commands.DEFAULT_RESOURCE_URL_TAG
|
] = DEFAULT_RESOURCE_URL_TAG
|
||||||
self.googleanalytics_resource_prefix = config[
|
self.googleanalytics_resource_prefix = config[
|
||||||
"googleanalytics_resource_prefix"
|
"googleanalytics_resource_prefix"
|
||||||
]
|
]
|
||||||
|
|
Loading…
Reference in New Issue