http://www.mediawiki.org/wiki/Special:Code/pywikipedia/11114
Revision: 11114 Author: amir Date: 2013-02-25 05:54:07 +0000 (Mon, 25 Feb 2013) Log Message: ----------- fixing bug #3605830
Modified Paths: -------------- trunk/pywikipedia/wikipedia.py
Modified: trunk/pywikipedia/wikipedia.py =================================================================== --- trunk/pywikipedia/wikipedia.py 2013-02-24 19:17:05 UTC (rev 11113) +++ trunk/pywikipedia/wikipedia.py 2013-02-25 05:54:07 UTC (rev 11114) @@ -4119,6 +4119,10 @@ 'summary': self._encodeArg(summary, 'summary'), } params['site'] = self._originSite.dbName().split('_')[0] + if params['site']==u"wikidatawikidata": + del params['site'] + params['id']=params['title'] + del params['title'] params['format'] = 'jsonfm' if items['type'] == u'item': params['value'] = items['value']
pywikipedia-svn@lists.wikimedia.org