[Pywikipedia-l] SVN: [6270] trunk/pywikipedia

Russell Blau russblau at imapmail.org
Thu Jan 22 15:09:13 UTC 2009


Ah, I see that the nlwiki has decided (for whatever reason) to have some 
categories whose names start with "Categorie:Wikipedia:Something something". 
Not a good idea, although technically valid names.

replace.py -cat:Categorie:Wikipedia:Nog_te_categoriseren (... etc.)

should work.

Russ

----- Original Message ----- 
From: "Maarten Dammers" <maarten at mdammers.nl>
To: "Pywikipedia discussion list" <pywikipedia-l at lists.wikimedia.org>
Sent: Thursday, January 22, 2009 9:44 AM
Subject: Re: [Pywikipedia-l] SVN: [6270] trunk/pywikipedia


> 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
> Pywikipedia-l at lists.wikimedia.org
> https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l
> 




More information about the Pywikipedia-l mailing list