http://www.mediawiki.org/wiki/Special:Code/pywikipedia/10836
Revision: 10836 Author: russblau Date: 2012-12-28 15:13:29 +0000 (Fri, 28 Dec 2012) Log Message: ----------- Create use_hard_category_redirects property for future use; see [[commons:Template talk:Category redirect]] for a proposal to replace category redirect templates with hard redirects.
Modified Paths: -------------- branches/rewrite/pywikibot/family.py branches/rewrite/pywikibot/site.py
Modified: branches/rewrite/pywikibot/family.py =================================================================== --- branches/rewrite/pywikibot/family.py 2012-12-28 02:13:01 UTC (rev 10835) +++ branches/rewrite/pywikibot/family.py 2012-12-28 15:13:29 UTC (rev 10836) @@ -546,6 +546,8 @@ self.category_redirect_templates = { '_default': [] } + # A list of languages that use hard (instead of soft) category redirects + self.use_hard_category_redirects = []
# A list of disambiguation template names in different languages self.disambiguationTemplates = {
Modified: branches/rewrite/pywikibot/site.py =================================================================== --- branches/rewrite/pywikibot/site.py 2012-12-28 02:13:01 UTC (rev 10835) +++ branches/rewrite/pywikibot/site.py 2012-12-28 15:13:29 UTC (rev 10836) @@ -148,6 +148,8 @@ user = None if user is None else user[0].upper() + user[1:] sysop = None if sysop is None else sysop[0].upper() + sysop[1:] self._username = [user, sysop] + self.use_hard_category_redirects = \ + self.code in self.family.use_hard_category_redirects
# following are for use with lock_page and unlock_page methods self._pagemutex = threading.Lock()
pywikipedia-svn@lists.wikimedia.org