https://bugzilla.wikimedia.org/show_bug.cgi?id=55148
--- Comment #6 from Kunal Mehta (Legoktm) <legoktm.wikipedia(a)gmail.com> ---
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 the assignee for the bug.