Revision: 5870 Author: russblau Date: 2008-09-01 16:01:00 +0000 (Mon, 01 Sep 2008)
Log Message: ----------- fix bug in /doc page detection
Modified Paths: -------------- trunk/pywikipedia/category_redirect.py
Modified: trunk/pywikipedia/category_redirect.py =================================================================== --- trunk/pywikipedia/category_redirect.py 2008-08-31 22:46:50 UTC (rev 5869) +++ trunk/pywikipedia/category_redirect.py 2008-09-01 16:01:00 UTC (rev 5870) @@ -252,17 +252,17 @@
# pass 2: look for template doc pages for result in self.query_results(list="categorymembers", - cmtitle=oldCat.title(), - cmprop="title|sortkey", - cmnamespace="10", - cmlimit="max"): + cmtitle=oldCat.title(), + cmprop="title|sortkey", + cmnamespace="10", + cmlimit="max"): for item in result['categorymembers']: doc = wikipedia.Page(self.site, item['title']+"/doc") try: old_text = doc.get() except wikipedia.Error: continue - changed = self.change_category(article, oldCat, newCat, + changed = self.change_category(doc, oldCat, newCat, comment=editSummary) if changed: moved += 1