http://www.mediawiki.org/wiki/Special:Code/pywikipedia/11060
Revision: 11060 Author: xqt Date: 2013-02-09 17:46:15 +0000 (Sat, 09 Feb 2013) Log Message: ----------- wikidata does not trancludes itself
Modified Paths: -------------- trunk/pywikipedia/families/wikidata_family.py
Modified: trunk/pywikipedia/families/wikidata_family.py =================================================================== --- trunk/pywikipedia/families/wikidata_family.py 2013-02-09 15:24:52 UTC (rev 11059) +++ trunk/pywikipedia/families/wikidata_family.py 2013-02-09 17:46:15 UTC (rev 11060) @@ -56,5 +56,8 @@ the site opject is the repository itself, see Site.is_data_repository()
""" - return ('wikidata', - 'wikidata') if code == 'wikidata' else ('repo', 'wikidata') + if transcluded: + return(None, None) + else: + return ('wikidata', + 'wikidata') if code == 'wikidata' else ('repo', 'wikidata')
pywikipedia-svn@lists.wikimedia.org