config is no longer available to templates (changed in CKAN core), use g
instead.
This means I have to rename googleanalytics.resource_prefix to
googleanalytics_resource_prefix, because it's now an attribute and can't
have a . in it.
Should probably be using g rather than config to access the setting in
the Python code as well..
Since version 2 of the Google Analytics API was shelved the download
of previous data was broken. This commit should, once the oauth dance
has been complete, allow it to work again by changing all of the calls.
See the README for instructions on setting up OAUTH. Other bug fixes
are:
- Resources views are now clearly identified
- Package Ids are set for /dataset/edit requests
- Updated README