[ckan-dev] Remove free tags via API

von Waldow, Harald Harald.vonWaldow at eawag.ch
Wed Nov 6 13:03:41 UTC 2019


Hello everybody

It appears that it is not possible to remove tags via
package_update|patch.

Because this goes through the validator
ckan.logic.validators.tag_string_convert(), which only appends.

Going through the UI, the job is done by  _tag_string_to_list() in
controller resp. view, which replaces the previous tag_string.

It that correct? How to remove free tags through the API? Should I
register a validator like "tag_string_convert_replace()"?


Kind regards,
Harald

-- 
Harald von Waldow
Eawag
ICT Services
Research Data Management
Ueberlandstrasse 133
8600 Duebendorf
http://www.eawag.ch
https://opendata.eawag.ch
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20191106/63d2ddc5/attachment.sig>


More information about the ckan-dev mailing list