[ckan-dev] File upload via API and ckanclient

Hendrik Bunke bunke.hendrik at gmail.com
Fri Apr 5 10:47:24 UTC 2013


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




More information about the ckan-dev mailing list