On Tue, Jun 14, 2011 at 12:28 PM, Russell Blau <russblau@imapmail.org> wrote:
That should fail; it would equally fail if you triedmyCat = pywikibot.Category(mySite, "Garbage")
since "Garbage" is not in the Category namespace. In other words, the fact
that the category title starts with "Wikipedia:" has nothing to do with it.
However, this should work:
myCat = pywikibot.Category(mySite, "Kategori:Wikipedia:Globalt perspektiv-samtliga");
> Creating it as a page with namespace set to 14 results in:
> >>> myPage = pywikibot.Page(mySite, 'Wikipedia:Globalt
> perspektiv-samtliga', ns=14);
> >>> print myPage.title();
> Wikipedia:Globalt perspektiv-samtliga
> >>> print myPage.namespace();
> 4
>
> The title's namespace overrides the given option, which itsn't what I
> would
> expect.
That one does seem like a bug. The namespace number ought to match the
actual title. I'll investigate further.