Revision: 5056
Author: rotem
Date: 2008-02-19 16:37:58 +0000 (Tue, 19 Feb 2008)
Log Message:
-----------
(bug 1896899) Don't encode the user name in welcome.py
Modified Paths:
--------------
trunk/pywikipedia/welcome.py
Modified: trunk/pywikipedia/welcome.py
===================================================================
--- trunk/pywikipedia/welcome.py 2008-02-19 16:36:06 UTC (rev 5055)
+++ trunk/pywikipedia/welcome.py 2008-02-19 16:37:58 UTC (rev 5056)
@@ -406,16 +406,16 @@
contribs = wsite.getUrl(con)
contribnum = contribs.count('<li>') # Maxes at 50, but not
important.
if contribnum >= number:
- wikipedia.output(u'%s has enough edits to be welcomed' % username )
+ wikipedia.output(u'%s has enough edits to be welcomed' %
userpage.titleWithoutNamespace() )
# The user must be welcomed, return his data.
yield ([username, contribnum])
elif contribnum < number:
if contribnum == 0:
- wikipedia.output(u'%s has no contributions.' % username )
+ wikipedia.output(u'%s has no contributions.' %
userpage.titleWithoutNamespace() )
# That user mustn't be welcomed, return None.
yield None
else:
- wikipedia.output(u'%s has only %s contributions.' % (username,
str(contribnum)) )
+ wikipedia.output(u'%s has only %s contributions.' %
(userpage.titleWithoutNamespace(), str(contribnum)) )
# That user mustn't be welcomed, return None.
yield None
Show replies by date