https://bugzilla.wikimedia.org/show_bug.cgi?id=55148
--- Comment #6 from Kunal Mehta (Legoktm) <[email protected]> --- In wikipedia.py, I made createitem accept one more parameter which is a dictionary called 'value', and change variable params to params = \{ 'summary': self.\_encodeArg\(summary, 'summary'\), 'format': 'jsonfm', 'action': 'wbeditentity', 'data': re.sub\(ur"\bu\'", u'"', repr\(value\).decode\("unicode-escape"\)\).replace\("'", '"'\)\) \} With this code, you can call datapage.createitem\("Bot: import iw links", value=\{'labels': \{'en': \{'language': 'en', 'value': 'abc'\}, 'th': \{'language': 'th', 'value': 'bca'\}\}, 'sitelinks': \{'enwiki': \{'site': 'enwiki', 'title': 'abc'\}\}\}\) -- You are receiving this mail because: You are on the CC list for the bug. _______________________________________________ Wikibugs-l mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
