You should delete the API cache first.
xqt
Von: Morten Wang
Gesendet: 27.02.2013 16:39
An: Pywikipedia discussion list
Betreff: [Pywikipedia-l] Rewrite branch,issue with user pages in aliased namespaceHi all,I've run into an interesting issue on Portuguese Wikipedia, with a user page that's in the aliased user namespace:import pywikibot;
site = pywikibot.getSite('pt');
page = pywikibot.Page(site, u"Usuário:Vitorvicentevalente");
page.title();
u'Usu\xe1rio(a):Vitorvicentevalente'
page.get()
[NOTE: callback trace removed for brevity]
pywikibot.exceptions.Error: loadrevisions: Query on [[pt:Usuário(a):Vitorvicentevalente]] returned data on 'Usuário:Vitorvicentevalente'According to the API "Usuário" is a valid namespace alias[1]. Is there an easy workaround or fix here?Also, I've noticed this is not an issue in trunk, it's just the rewrite branch that produces this error.Footnotes:Regards,Morten
_______________________________________________
Pywikipedia-l mailing list
Pywikipedia-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l