http://www.mediawiki.org/wiki/Special:Code/pywikipedia/11684
Revision: 11684 Author: legoktm Date: 2013-06-21 19:44:09 +0000 (Fri, 21 Jun 2013) Log Message: ----------- Now that [[gerrit:67886]] is deployed, we can expect to get a globe each time
Modified Paths: -------------- branches/rewrite/pywikibot/data/api.py branches/rewrite/pywikibot/site.py
Modified: branches/rewrite/pywikibot/data/api.py =================================================================== --- branches/rewrite/pywikibot/data/api.py 2013-06-21 19:28:54 UTC (rev 11683) +++ branches/rewrite/pywikibot/data/api.py 2013-06-21 19:44:09 UTC (rev 11684) @@ -979,7 +979,7 @@ typ=co.get('type', ''), name=co['name'], dim=int(co['dim']), - globe=co.get('globe', 'earth'), # See [[gerrit:67886]] + globe=co['globe'], # See [[gerrit:67886]] ) coords.append(coord) page._coords = coords
Modified: branches/rewrite/pywikibot/site.py =================================================================== --- branches/rewrite/pywikibot/site.py 2013-06-21 19:28:54 UTC (rev 11683) +++ branches/rewrite/pywikibot/site.py 2013-06-21 19:44:09 UTC (rev 11684) @@ -1190,7 +1190,8 @@ type_arg="coordinates", titles=title.encode(self.encoding()), coprop=['type', 'name', 'dim', - 'country', 'region'], + 'country', 'region', + 'globe'], coprimary='all') for pageitem in query: if not self.sametitle(pageitem['title'], title):
pywikipedia-svn@lists.wikimedia.org