Hi Cyde,
Cyde Weys schreef:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> If this commit is causing any problems and you can't figure out what's
> wrong, please contact me and I'll have a look. Changing the behavior of
> the generator factory required touching every bot that used it, and I'm
> not familiar enough with some of the bots that I had to edit that I'm
> confidently I did it entirely right.
>
-cat: stopped working:
replace.py -cat:Wikipedia:Nog_te_categoriseren -regex
"\{\{([xX]?)[nN]ocat\}\}"
"{{xnocat||{{subst:CURRENTYEAR}}|{{subst:CURRENTMONTH}}|{{subst:CURRENTDAY}}}}"
-summary:"Datum toevoegen aan nocat sjabloon" -always
Checked for running processes. 2 processes currently running, including the
current process.
Traceback (most recent call last):
File "/home/bot/pywikipedia/replace.py", line 705, in ?
main()
File "/home/bot/pywikipedia/replace.py", line 562, in main
if not genFactory.handleArg(arg):
File "/home/bot/pywikipedia/pagegenerators.py", line 922, in handleArg
gen = self.getCategoryGen(arg, len('-cat'))
File "/home/bot/pywikipedia/pagegenerators.py", line 837, in getCategoryGen
cat = catlib.Category(wikipedia.getSite(), categoryname)
File "/home/bot/pywikipedia/catlib.py", line 67, in __init__
raise ValueError(u'BUG: %s is not in the category namespace!' % title)
ValueError: BUG: Wikipedia:Nog_te_categoriseren is not in the category
namespace!
And another one:
replace.py -cat:Wikipedia:Wikificatie_nodig -regex "\{\{([xX]?)[wW]ikify\}\}"
"{{wikify||{{subst:CURRENTYEAR}}|{{subst:CURRENTMONTH}}|{{subst:CURRENTDAY}}}}"
-summary:"Datum toevoegen aan wikify sjabloon" -always
Checked for running processes. 2 processes currently running, including the
current process.
Traceback (most recent call last):
File "/home/bot/pywikipedia/replace.py", line 705, in ?
main()
File "/home/bot/pywikipedia/replace.py", line 562, in main
if not genFactory.handleArg(arg):
File "/home/bot/pywikipedia/pagegenerators.py", line 922, in handleArg
gen = self.getCategoryGen(arg, len('-cat'))
File "/home/bot/pywikipedia/pagegenerators.py", line 837, in getCategoryGen
cat = catlib.Category(wikipedia.getSite(), categoryname)
File "/home/bot/pywikipedia/catlib.py", line 67, in __init__
raise ValueError(u'BUG: %s is not in the category namespace!' % title)
ValueError: BUG: Wikipedia:Wikificatie_nodig is not in the category namespace!
Could you please fix this?
Thank you,
Maarten
_______________________________________________
Pywikipedia-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l