Revision: 7668 Author: multichill Date: 2009-11-18 16:53:14 +0000 (Wed, 18 Nov 2009)
Log Message: ----------- *Naming fix *Added some dawp templates
Modified Paths: -------------- trunk/pywikipedia/commonscat.py
Modified: trunk/pywikipedia/commonscat.py =================================================================== --- trunk/pywikipedia/commonscat.py 2009-11-18 16:17:36 UTC (rev 7667) +++ trunk/pywikipedia/commonscat.py 2009-11-18 16:53:14 UTC (rev 7668) @@ -59,7 +59,7 @@ 'cs' : (u'Commonscat', [u'Commons cat']), 'cu' : (u'Commonscat', []), 'cv' : (u'Commonscat', []), - 'da' : (u'Commonscat', [u'Commons cat']), + 'da' : (u'Commonscat', [u'Commons cat', u'Commonskat', u'Commonscat2']), 'de' : (u'Commonscat', []), # No alternatives found 'diq' : (u'Commonscat', []), 'dv' : (u'Commonscat', []), @@ -249,13 +249,13 @@ return (True, always) elif checkedCommonscatTarget!=u'': #We have a new Commonscat link, replace the old one - changeCommonscat (page, currentCommonscatTemplate, currentCommonscat, primaryCommonscat, checkedCommonscat) + changeCommonscat (page, currentCommonscatTemplate, currentCommonscatTarget, primaryCommonscat, checkedCommonscatTarget) return (True, always) else: #Commonscat link is wrong commonscatLink = findCommonscatLink(page) if (commonscatLink!=u''): - changeCommonscat (page, currentCommonscat, commonscatLink) + changeCommonscat (page, currentCommonscatTemplate, currentCommonscatTarget, primaryCommonscat, commonscatLink) #else #Should i remove the commonscat link?
pywikipedia-svn@lists.wikimedia.org