2011/5/22 Bináris <[email protected]>:

> 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).


-- 
André Engels, [email protected]

_______________________________________________
Pywikipedia-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l

Reply via email to