[854] Fixes unexplained failure with fetching publisher information.
author Ross Jones
()
committer Ross Jones
()
commit a10c17eca1a098027973639ce595fe2c7e14547f
tree 04ae32602a48cd8473a31582d411b8c7ec128851
parent 3a01959e0c6c5742b5357a95c53d9ff8f78d1e44
[854] Fixes unexplained failure with fetching publisher information.

Whilst we are still using the google lib we only let it do the oauth dance
before we take over making the requests using the python-requests library.

In cases where it fails with a 401 we will retry the request ONCE after
trying to obtain a new token.

Re-enabled all of the relevant links and html blocks that were commented out.
ckanext/ga_report/command.py
ckanext/ga_report/controller.py
ckanext/ga_report/download_analytics.py
ckanext/ga_report/ga_auth.py
ckanext/ga_report/templates/ga_report/ga_util.html
ckanext/ga_report/templates/ga_report/publisher/index.html
ckanext/ga_report/templates/ga_report/publisher/popular.html
ckanext/ga_report/templates/ga_report/publisher/read.html