[ckan-dev] question on plugins.toolkit.get_action('user_list')
Nigel Babu
nigel.babu at okfn.org
Mon Jan 20 09:21:15 UTC 2014
Hi Frederic,
Can you try without the 'q' parameter?
Nigel Babu
Developer | @nigelbabu <https://twitter.com/nigelbabu>
The Open Knowledge Foundation <http://okfn.org/>
Empowering through Open Knowledge
http://okfn.org/ | @okfn <http://twitter.com/OKFN> | OKF on
Facebook<https://www.facebook.com/OKFNetwork> |
Blog <http://blog.okfn.org/> | Newsletter<http://okfn.org/about/newsletter>
CKAN | http://ckan.org/ | @CKANproject
<http://twitter.com/CKANproject> |the world’s leading open-source data
portal platform
On 15 January 2014 16:53, <frederic.prieur at ville.montreal.qc.ca> wrote:
> Hi guys,
>
> I got a question regarding the plugin.toolkit.get_action request.
>
> I try to get all the users of my ckan instance with the code above:
>
> data_dict = {
> 'q': '*:*',
> 'order_by': 'name',
> }
>
> result = plugins.toolkit.get_action('user_list')(context, data_dict)
>
>
>
> I always get a empty list even if the api call says that i got 5 users.
>
> Am I doing something wrong ?
>
> Thanks in advance
> ---------------------------------------------------------------------------
> Frédéric Prieur
> _______________________________________________
> ckan-dev mailing list
> ckan-dev at lists.okfn.org
> https://lists.okfn.org/mailman/listinfo/ckan-dev
> Unsubscribe: https://lists.okfn.org/mailman/options/ckan-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20140120/9a046f04/attachment-0003.html>
More information about the ckan-dev
mailing list