[ckan-dev] Using the new logic functions

David Raznick kindly at gmail.com
Mon Apr 18 12:11:18 UTC 2011


Hello

It theoretically should be that easy.
ckan.logic.actions.create_package_rest is the one you should need.

You will have to pass the context dict with model, user and session.

Tell me if anything goes wrong.

David

2011/4/18 Adrià Mercader <amercadero at gmail.com>

> Hi all,
> A question aimed specially at David Raznick,
>
> I'm writing a harvester for CKAN instances that basically queries the
> rest API and stores the JSON response for each remote package. On the
> import stage it should create a new package from a dictionary created
> from this json response, and I'm suspecting that this would be as easy
> as importing and using package_create from ckan.logic.actions.create.
> Am I right?
>
> I hope it's as easy as it sounds, because it would be brilliant!
>
> Adrià
>
> _______________________________________________
> ckan-dev mailing list
> ckan-dev at lists.okfn.org
> http://lists.okfn.org/mailman/listinfo/ckan-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20110418/a186d168/attachment-0001.html>


More information about the ckan-dev mailing list