[ckan-dev] A new ckan client library: ckanapi

Ian Ward ian at excess.org
Wed Apr 24 16:57:43 UTC 2013


On Wed, Apr 24, 2013 at 7:28 AM, John Mrziglod <mrzo at gmx.de> wrote:

> response = ckan_object.call_action(action,object);
>
> It works fine by using 'action=package_update' with default fields, e.g.:
>
> object = {"name":"extratest","title":"Test with Extras"}
>
> But what I need is an update with an extras data field, i.e.:
>
> object = {"name":"extratest","title":"Test with Extras","extras": [{"key":
> "config",  "value": "xxx"}]}
>
>
That looks about right, but it's always nicer to see actual code. What
happens when you do this, the extras just don't appear?

BTW, ckanapi just json encodes everything passed and sends them to the
action, it doesn't have any specific handling for package_update or any
other action.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20130424/5d8d5652/attachment-0001.html>


More information about the ckan-dev mailing list