Feature Requests item #3605726, was opened at 2013-02-22 18:45 Message generated for change (Settings changed) made by pathoschild You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603141&aid=3605726...
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update.
Category: None
Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Jesse Plamondon-Willard (pathoschild) Assigned to: Nobody/Anonymous (nobody) Summary: Let bots use canonical namespaces
Initial Comment: 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_talk:Pathoschild?oldid=5269904#Probl.C3.... [2] http://meta.wikimedia.org/wiki/User_talk:Pathoschild?oldid=5269904#Polish_Wi...
----------------------------------------------------------------------
You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603141&aid=3605726...
pywikipedia-bugs@lists.wikimedia.org