[ckan-dev] Hook into CKAN Datastore API

Hakan Solmaz hakansolmaz06 at outlook.com
Thu May 23 20:04:25 UTC 2019


Hello everyone,


I want to extend datastore_create(context, data_dict) in ckanext.datastore.logic.action.

So I want to hook into this method to check if data_dict has a specific field. If the field is given datastore_create should be processed otherwise I want to break the process and warn the user that the field is missing.

There is ckan.logic.get_action('')(...) to override the actions. Actually I don't want to override an action. I just want to add an additional check that's all. But I don't know how to that.

I hope it is clear what I mean.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20190523/d672f180/attachment.html>


More information about the ckan-dev mailing list