http://www.mediawiki.org/wiki/Special:Code/pywikipedia/11770
Revision: 11770 Author: xqt Date: 2013-07-20 10:52:33 +0000 (Sat, 20 Jul 2013) Log Message: ----------- new scriptpath for wikidata test client
Modified Paths: -------------- branches/rewrite/pywikibot/families/wikidata_family.py
Modified: branches/rewrite/pywikibot/families/wikidata_family.py =================================================================== --- branches/rewrite/pywikibot/families/wikidata_family.py 2013-07-20 10:48:00 UTC (rev 11769) +++ branches/rewrite/pywikibot/families/wikidata_family.py 2013-07-20 10:52:33 UTC (rev 11770) @@ -18,6 +18,11 @@ 'test': 'test.wikidata.org', }
+ def scriptpath(self, code): + if code == 'client': + return '' + return super(Family, self).scriptpath(code) + def shared_data_repository(self, code, transcluded=False): """Always return a repository tupe. This enables testing whether the site opject is the repository itself, see Site.is_data_repository()
pywikipedia-svn@lists.wikimedia.org