http://www.mediawiki.org/wiki/Special:Code/pywikipedia/11681
Revision: 11681 Author: legoktm Date: 2013-06-21 18:27:24 +0000 (Fri, 21 Jun 2013) Log Message: ----------- Account for breaking change in API ([[gerrit:68406]]) by passing new parameter when creating a new item
Modified Paths: -------------- trunk/pywikipedia/wikipedia.py
Modified: trunk/pywikipedia/wikipedia.py =================================================================== --- trunk/pywikipedia/wikipedia.py 2013-06-21 18:23:31 UTC (rev 11680) +++ trunk/pywikipedia/wikipedia.py 2013-06-21 18:27:24 UTC (rev 11681) @@ -4194,7 +4194,8 @@ params = { 'summary': self._encodeArg(summary, 'summary'), 'format': 'jsonfm', - 'action': 'wbeditentity' + 'action': 'wbeditentity', + 'new': 'item', } if not value: params['data'] = (u'{"labels": {"%(lang)s": {"language": "%(lang)s", '
pywikipedia-svn@lists.wikimedia.org