[Pywikipedia-l] SVN: [5680] trunk/pywikipedia/commonscat.py
filnik at svn.wikimedia.org
filnik at svn.wikimedia.org
Sun Jul 6 10:31:36 UTC 2008
Revision: 5680
Author: filnik
Date: 2008-07-06 10:31:36 +0000 (Sun, 06 Jul 2008)
Log Message:
-----------
Adding two template to skip for the italian wikipedia
Modified Paths:
--------------
trunk/pywikipedia/commonscat.py
Modified: trunk/pywikipedia/commonscat.py
===================================================================
--- trunk/pywikipedia/commonscat.py 2008-07-06 10:27:46 UTC (rev 5679)
+++ trunk/pywikipedia/commonscat.py 2008-07-06 10:31:36 UTC (rev 5680)
@@ -154,6 +154,7 @@
ignoreTemplates = {
'en' : [u'Category redirect', u'Commons', u'Commonscat', u'Commonscat1A', u'Commoncats', u'Commonscat4Ra', u'Sisterlinks', u'Sisterlinkswp', u'Tracking category', u'Template category', u'Wikipedia category'],
+ 'it' : [u'Ip|commons=', 'Interprogetto|commons='],
'ja' : [u'CommonscatS'],
'nl' : [u'Commons'],
}
@@ -173,7 +174,7 @@
'''
if ignoreTemplates.has_key(page.site().language()):
for template in page.templates():
- if template in ignoreTemplates[page.site().language()]:
+ if template in ignoreTemplates[page.site().language()]:
return True
return False
More information about the Pywikipedia-l
mailing list