http://www.mediawiki.org/wiki/Special:Code/pywikipedia/10443
Revision: 10443 Author: xqt Date: 2012-07-08 07:21:39 +0000 (Sun, 08 Jul 2012) Log Message: ----------- default family and code is needed for -user option follow up for r10261
Modified Paths: -------------- trunk/pywikipedia/wikipedia.py
Modified: trunk/pywikipedia/wikipedia.py =================================================================== --- trunk/pywikipedia/wikipedia.py 2012-07-06 09:25:07 UTC (rev 10442) +++ trunk/pywikipedia/wikipedia.py 2012-07-08 07:21:39 UTC (rev 10443) @@ -6842,7 +6842,8 @@ 'list' : 'recentchanges', 'rcdir' : rcdir, 'rctype' : rctype, - 'rcprop' : ['user','comment','timestamp','title','ids','loginfo','sizes'], #','flags','redirect','patrolled'] + 'rcprop' : ['user', 'comment', 'timestamp', 'title', 'ids', + 'loginfo', 'sizes'], #', 'flags', 'redirect', 'patrolled'], 'rcnamespace' : namespace, 'rclimit' : int(number), } @@ -8133,7 +8134,7 @@ nonGlobalArgs.append(arg)
if username: - config.usernames[config.family][config.mylang] = username + config.usernames[default_family][default_code] = username
# TEST for bug #3081100 if unicode_error:
pywikipedia-svn@lists.wikimedia.org