Hi,
*user vita *is an outdated but well-working name for user talk namespace in Hungarian Wikipedia. If I write [[user vita:Bináris]], it takes me directly to my talk page (which is now called *Szerkesztővita:Bináris*). But for the code s = u'user vita:Bináris' p = pywikibot.Page(site,s) print p.namespace() the result is 0 instead of 3. Where is the error?
2011/5/22 Bináris wikiposta@gmail.com:
user vita is an outdated but well-working name for user talk namespace in Hungarian Wikipedia. If I write [[user vita:Bináris]], it takes me directly to my talk page (which is now called Szerkesztővita:Bináris). But for the code s = u'user vita:Bináris' p = pywikibot.Page(site,s) print p.namespace() the result is 0 instead of 3. Where is the error?
The names of the namespaces are not received from the wiki, but are coded inside the code itself, more precisely in family.py. And for Hungarian only "Szerkesztővita" is defined there (plus "User talk" which is considered valid in all languages).
Thank you. I will collect the other aliases and make a bugreport then. Funny thing is that even after p.get() is the namespace misrecognized.
2011/5/22 Andre Engels andreengels@gmail.com
The names of the namespaces are not received from the wiki, but are coded inside the code itself, more precisely in family.py.
Fixed in r9269
Greetings
xqt
----- Original Nachricht ---- Von: Bináris wikiposta@gmail.com An: Pywikipedia discussion list pywikipedia-l@lists.wikimedia.org Datum: 22.05.2011 20:08 Betreff: Re: [Pywikipedia-l] User talk page not recognized by bot
Thank you. I will collect the other aliases and make a bugreport then. Funny thing is that even after p.get() is the namespace misrecognized.
2011/5/22 Andre Engels andreengels@gmail.com
The names of the namespaces are not received from the wiki, but are coded inside the code itself, more precisely in family.py.
Pywikipedia-l mailing list Pywikipedia-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l