matej_suchanek added a comment.
Just make all changes to the item's attributes and then call
`item.editEntity`:
item = pywikibot.ItemPage(repo, 'Q123')
item.labels['en'] = 'English label'
item.descriptions['de'] = 'German description'
claim = pywikibot.Claim(repo, 'P456')
claim.setTarget(...)
item.claims.setdefault('P456', []).append(claim)
item.editEntity(summary='edit summary')
TASK DETAIL
https://phabricator.wikimedia.org/T324401
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: matej_suchanek
Cc: matej_suchanek, Xqt, Aklapper, Multichill, RPI2026F1, pywikibot-bugs-list,
PotsdamLamb, Jyoo1011, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido,
Viztor, Wenyi, Tbscho, MayS, Mdupont, JJMC89, Dvorapa, Altostratus,
Avicennasis, mys_721tx, jayvdb, Ricordisamoa, Masti, Alchimista
_______________________________________________
pywikibot-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]