http://www.mediawiki.org/wiki/Special:Code/pywikipedia/11748
Revision: 11748 Author: drtrigon Date: 2013-07-13 08:57:38 +0000 (Sat, 13 Jul 2013) Log Message: ----------- improvement; add 'sortkeyprefix' to page objects found
Modified Paths: -------------- trunk/pywikipedia/catlib.py
Modified: trunk/pywikipedia/catlib.py =================================================================== --- trunk/pywikipedia/catlib.py 2013-07-13 08:11:29 UTC (rev 11747) +++ trunk/pywikipedia/catlib.py 2013-07-13 08:57:38 UTC (rev 11748) @@ -272,8 +272,10 @@ yield ARTICLE, pywikibot.ImagePage(self.site(), memb['title']) else: - yield ARTICLE, pywikibot.Page(self.site(), memb['title'], - defaultNamespace=memb['ns']) + page = pywikibot.Page(self.site(), memb['title'], + defaultNamespace=memb['ns']) + page.sortkeyprefix = memb['sortkeyprefix'] + yield ARTICLE, page if count >= params['cmlimit']: break # try to find a link to the next list page