New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
problems with ~/.ckanclientrc #15
Comments
@timrdf hi tim. I see @tobes has replied on list correctly indicated that there is a bug in the docs in that this is not actually supported. That said all the code for this is in the https://github.com/okfn/ckanclient/blob/master/ckanclient/datastore.py file and just needs to be moved across (I think that there had been a plan to do this but which somehow got stalled halfway). |
Thanks, @rgrp. As I said on list, I'll work around the issue as long as I can, and then re-raise it and/or fork the repo to add the older capability. For my own reference, I discuss this issue #15 at https://github.com/timrdf/DataFAQs/wiki/DATAFAQS-environment-variables and https://github.com/timrdf/DataFAQs/wiki/CKAN, which is where I'll continue to elaborate my need for a ~/.ckanclientrc with different api keys for different ckan instances. Regards, |
Thanks. The fix here should be pretty easy (we just need to copy some of the code from datastore.py). The moment you ahve something we can review and merge. |
Greetings,
I'm having some trouble getting
~/.ckanclientrc
to work as https://github.com/okfn/ckanclient suggests.While the following code works fine, it does not work when I remove the
api_key
argument -- even if I have specified the key in~/.ckanclientrc
(shown below).How can I get the CkanClient to use the API key given in
~/.ckanclientrc
?Thanks for much!
Tim Lebo
The text was updated successfully, but these errors were encountered: