Feature Requests item #3605726, was opened at 2013-02-22 18:45
Message generated for change (Tracker Item Submitted) made by pathoschild
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=603141&aid=3605726&group_id=93107

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: featured
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.A8me_avec_ton_bot_sur_Wikinews_portugais
[2] 
http://meta.wikimedia.org/wiki/User_talk:Pathoschild?oldid=5269904#Polish_Wikivoyage_user_js_files

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=603141&aid=3605726&group_id=93107

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

Reply via email to