Revision: 6048 Author: russblau Date: 2008-11-01 10:32:07 +0000 (Sat, 01 Nov 2008)
Log Message: ----------- new redirect for commons:, and some minor output changes
Modified Paths: -------------- trunk/pywikipedia/category_redirect.py
Modified: trunk/pywikipedia/category_redirect.py =================================================================== --- trunk/pywikipedia/category_redirect.py 2008-11-01 10:13:21 UTC (rev 6047) +++ trunk/pywikipedia/category_redirect.py 2008-11-01 10:32:07 UTC (rev 6048) @@ -85,6 +85,7 @@ u'Catredirect', u'Cat redirect', u'CatRed', + u'Cat-red', u'Catredir', u'Redirect category',), } @@ -508,18 +509,19 @@ for cat in pagegenerators.PreloadingGenerator(catpages, 120): cat_title = cat.titleWithoutNamespace() if "category redirect" in cat_title: - self.log_text.append(u"* Ignoring %s%s" + self.log_text.append(u"* Ignoring [[:%s%s]]" % (self.catprefix, cat_title)) continue try: text = cat.get(get_redirect=True) except wikipedia.Error: - self.log_text.append(u"* Could not load %s%s; ignoring" + self.log_text.append(u"* Could not load [[:%s%s]]; ignoring" % (self.catprefix, cat_title)) continue match = template_regex.search(text) if match is None: - self.log_text.append(u"* False positive: %s" % cat_title) + self.log_text.append(u"* False positive: [[:%s:%s]]" + % (self.catprefix, cat_title)) continue if cat_title not in record: # make sure every redirect has a record entry