Revision: 5222 Author: wikipedian Date: 2008-04-16 10:23:09 +0000 (Wed, 16 Apr 2008)
Log Message: ----------- slightly lifted the category restriction on de.wikipedia
Modified Paths: -------------- trunk/pywikipedia/wikipedia.py
Modified: trunk/pywikipedia/wikipedia.py =================================================================== --- trunk/pywikipedia/wikipedia.py 2008-04-15 19:20:01 UTC (rev 5221) +++ trunk/pywikipedia/wikipedia.py 2008-04-16 10:23:09 UTC (rev 5222) @@ -3342,8 +3342,8 @@
if site is None: site = getSite() - if site.sitename() == 'wikipedia:de': - raise Error('The PyWikipediaBot is no longer allowed to touch categories on the German Wikipedia. See http://de.wikipedia.org/wiki/Hilfe_Diskussion:Personendaten/Archiv/bis_2006#...') + if site.sitename() == 'wikipedia:de' and "{{Personendaten" in oldtext: + raise Error('The PyWikipediaBot is no longer allowed to touch categories on the German Wikipedia on pages that contain the person data template because of the non-standard placement of that template. See http://de.wikipedia.org/wiki/Hilfe_Diskussion:Personendaten/Archiv/bis_2006#...')
s = categoryFormat(new, insite = site) if addOnly: