https://bugzilla.wikimedia.org/show_bug.cgi?id=55014
Web browser: --- Bug ID: 55014 Summary: Let bots use canonical namespaces Product: Pywikibot Version: unspecified Hardware: All OS: All Status: NEW Severity: enhancement Priority: Unprioritized Component: General Assignee: Pywikipedia-bugs@lists.wikimedia.org Reporter: legoktm.wikipedia@gmail.com Classification: Unclassified Mobile Platform: ---
Originally from: http://sourceforge.net/p/pywikipediabot/feature-requests/332/ Reported by: pathoschild Created on: 2013-02-23 02:45:38 Subject: Let bots use canonical namespaces Original description: Let bots use canonical namespaces instead of translations from the family files. This is useful for crosswiki bots, where invalid namespace names may not be detected by the operator (most recently [1][2]).
The attached patch implements this by adding an optional constructor argument to Page. For example, the current behaviour is unchanged: ns = wikipedia.Page(site, title).namespaceName() # Utilisateur:Pathoschild But a constructor argument enables canonical namespaces: ns = wikipedia.Page(site, title, translateNamespace=False).namespaceName() # User:Pathoschild
[1] http://meta.wikimedia.org/wiki/User%5C_talk:Pathoschild?oldid=5269904%5C#Pro... [2] http://meta.wikimedia.org/wiki/User%5C_talk:Pathoschild?oldid=5269904%5C#Pol...