[CKAN-support] [Open Knowledge Foundation] Update: Action tag_create ignores display_name in dict
Nigel Babu
notifications-support at okfn.zendesk.com
Mon Apr 7 03:08:29 UTC 2014
##- Please type your reply above this line -##
[Open Knowledge Foundation] Update: Action tag_create ignores display_name in dict
You are registered as a CC on this support request (377). Reply to this email to add a comment to the request.
----------------------------------------------
Nigel Babu, Apr 07 04:08
Hello Carlos,
This behavior is not a bug. A tag only has a name, which is also it's display name. For more details, take a look at http://docs.ckan.org/en/latest/api/index.html#ckan.logic.action.create.tag_create
Nigel.
----------------------------------------------
Carlos Quiros, Apr 06 14:52
Hi,
Im creating new tags with:
user = toolkit.get_action('get_site_user')({'ignore_auth': True}, {})
context = {'user': user['name']}
data = {'name': myTag, 'vocabulary_id': myVocab, 'display_name': "Carlos"}
toolkit.get_action('tag_create')(context, data)
However when I do a /api/3/action/vocabulary_list the "display_name" is
the same as "name"
Can you check if this is a bug?
Thanks,
Carlos
--------------------------------
This email is a service from Open Knowledge Foundation.
[S9DB-DJBK]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.okfn.org/mailman/private/ckan-support/attachments/20140407/650ba486/attachment-0002.html>
More information about the ckan-support
mailing list