| Danmichaelo added a comment. |
Funny thing is that it works fine to remove aliases as long as you leave at least one alias left for the given language. But trying to remove all aliases for a given language will not work:
item.aliases['en'] = [] item.editEntity()
This appears to be an inconsistency in the Wikibase api, so I tried filing T203337.
Btw. the last example (the not really convenient one) also doesn't work now because data['aliases'].items() in the _normalizeData method fails when data['aliases'] is a list. This should be fairly simple to fix though.
TASK DETAIL
EMAIL PREFERENCES
To: Danmichaelo
Cc: Danmichaelo, Aklapper, matej_suchanek, pywikibot-bugs-list, Tbscho, MayS, Mdupont, JJMC89, Avicennasis, mys_721tx, jayvdb, Ricordisamoa, Dalba, Masti, Alchimista, Rxy
Cc: Danmichaelo, Aklapper, matej_suchanek, pywikibot-bugs-list, Tbscho, MayS, Mdupont, JJMC89, Avicennasis, mys_721tx, jayvdb, Ricordisamoa, Dalba, Masti, Alchimista, Rxy
_______________________________________________ pywikibot-bugs mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
