[ckan-dev] what are context and data_dicts?
George Sattler
George.sattler at xvt.com.au
Thu May 16 02:56:40 UTC 2013
Hello Everyone.
I am writing an extension and I want to use:
result = ckan.logic.get_action('current_package_list_with_resources')()
Or even just on command line (without the recommended use of 'get_action'):
result = ckan.logic.action.get.current_package_list_with_resources()
However this function requires that you pass it 'context' and a 'data_dict' objects. I have no idea what exactly these objects are or how I can generate them and the documentation here http://docs.ckan.org/en/latest/ckan.logic.action.get.html#ckan.logic.action.get.current_package_list_with_resources doesn't seem clear enough (to me, anyway).
Would someone please be able to explain what params I should be supplying.
Thanks
George
________________________________
This email and any files transmitted with it is confidential and intended solely for the use of the addressee. The unauthorised use, dissemination, forwarding, printing or copying of this communication is strictly prohibited. If you have received this communication in error please notify us immediately by reply email and destroy this communication. Any views and opinions presented in this email are solely those of the author and do not necessarily represent the views of XVT Solutions. The recipient should check this email and any attachments for viruses. XVT Solutions accepts no liability for the content of this email, and any damage caused by any viruses that could potentially be transmitted through this email.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20130516/131b2bc5/attachment.html>
More information about the ckan-dev
mailing list