[ckan-dev] File upload via API and ckanclient
Anton Lundin
anton at dohi.se
Fri Apr 5 15:14:45 UTC 2013
I did fix a lot of errors in:
https://github.com/okfn/ckanclient/pull/14
But that never got merged, or have it bin force-pushed out of repo?
//Anton
On 05 April, 2013 - Hendrik Bunke wrote:
> And yet another pull request:
> https://github.com/okfn/ckanclient/pull/18
>
> This fixes the problem with the storage URL.
>
> Pull request #17 is already merged into master (thx to Rufus
> Pollock).
>
> regards
> hendrik
>
> --On 2013-04-04 11:26, Hendrik Bunke wrote:
> > I've submitted a pull request: https://github.com/okfn/ckanclient/pull/17
> >
> > This still leaves some issues open (binary files and storage url). I'll try
> > to fix that next week.
> >
> > regards
> > hendrik
> >
> >
> > On Wed, Apr 3, 2013 at 3:26 PM, Hendrik Bunke <bunke.hendrik at gmail.com>wrote:
> >
> > > --On 2013-04-01 22:24, Sean Hammond wrote:
> > > > > Well, I was right with my assumption that _post_multipart in
> > > > > ckanclient is responsible (and I should have looked there in the
> > > > > first place). It turned out that it's missing the
> > > > > authentification headers. Putting them there like so:
> > > > >
> > > > > h.putheader('Authorization', self.api_key)
> > > > > h.putheader('X-CKAN-API-Key', self.api_key)
> > > >
> > > > Could you submit a pull request with this fix to ckanclient?
> > >
> > > OK, I'll try within the next days.
> > >
> > > regards
> > > hendrik
> > >
> > > --
> > > Dr. Hendrik Bunke
> > > http://gplus.to/hbunke
> > > http://twitter.com/hbunke
> > > http://www.hbxt.org
> > >
> >
> >
> >
>
> --
> Dr. Hendrik Bunke
> http://gplus.to/hbunke
> http://twitter.com/hbunke
> http://www.hbxt.org
>
> _______________________________________________
> ckan-dev mailing list
> ckan-dev at lists.okfn.org
> http://lists.okfn.org/mailman/listinfo/ckan-dev
> Unsubscribe: http://lists.okfn.org/mailman/options/ckan-dev
--
Anton Lundin
anton at dohi.se
http://www.dohi.se/
More information about the ckan-dev
mailing list