http://www.mediawiki.org/wiki/Special:Code/pywikipedia/10201
Revision: 10201 Author: xqt Date: 2012-05-06 18:03:17 +0000 (Sun, 06 May 2012) Log Message: ----------- set defaultNamespace=10 for transclusion
Modified Paths: -------------- trunk/pywikipedia/archivebot.py
Modified: trunk/pywikipedia/archivebot.py =================================================================== --- trunk/pywikipedia/archivebot.py 2012-05-06 17:13:21 UTC (rev 10200) +++ trunk/pywikipedia/archivebot.py 2012-05-06 18:03:17 UTC (rev 10201) @@ -176,10 +176,7 @@
def generateTransclusions(Site, template, namespaces=[]): pywikibot.output(u'Fetching template transclusions...') - print namespaces, Site - transclusionPage = pywikibot.Page(Site, - "%s:%s" % (Site.namespace(10), - template)) + transclusionPage = pywikibot.Page(Site, template, defaultNamespace=10) gen = pagegenerators.ReferringPageGenerator(transclusionPage, onlyTemplateInclusion=True) if namespaces:
pywikipedia-svn@lists.wikimedia.org