Revision: 5109 Author: filnik Date: 2008-03-08 14:38:12 +0000 (Sat, 08 Mar 2008)
Log Message: ----------- Adding support in blocking message to the right encoding for the username
Modified Paths: -------------- trunk/pywikipedia/welcome.py
Modified: trunk/pywikipedia/welcome.py =================================================================== --- trunk/pywikipedia/welcome.py 2008-03-07 18:33:09 UTC (rev 5108) +++ trunk/pywikipedia/welcome.py 2008-03-08 14:38:12 UTC (rev 5109) @@ -787,7 +787,7 @@ # Check if the user has been already blocked. ki = blocked(wsite,username) if ki == True: - wikipedia.output(u'%s has been blocked! Skipping...' % username) + wikipedia.output(u'%s has been blocked! Skipping...' % username.titleWithoutNamespace()) continue # Understand if the user has a bad-username. for word in elenco: @@ -815,7 +815,7 @@ if baduser: while 1: if ask == True: - wikipedia.output(u'%s may have an unwanted username, what shall i do?' % username ) + wikipedia.output(u'%s may have an unwanted username, what shall i do?' % username.titleWithoutNamespace()) answer = wikipedia.input(u'[B]lock or [W]elcome?') for w in block: if w in answer: @@ -823,7 +823,7 @@ # Check if the user has been already blocked (second check). ki = blocked(wsite, username) if ki == True: - wikipedia.output(u'%s has been blocked! Skipping him...' % username) + wikipedia.output(u'%s has been blocked! Skipping him...' % username.titleWithoutNamespace()) continue report(wsite, rep_page, username, com, final_rep) break @@ -835,7 +835,7 @@ baduser = False break elif ask == False: - wikipedia.output(u'%s is possibly an unwanted username. He will be reported.' % username) + wikipedia.output(u'%s is possibly an unwanted username. He will be reported.' % username.titleWithoutNamespace()) if not usertalkpage.exists(): report(wsite, rep_page, username, com, final_rep) break @@ -857,7 +857,7 @@ wikipedia.output(u'An edit conflict has occured, skipping this user.') continue else: - wikipedia.output(u'%s has been already welcomed when i was loading all the users... skipping' % username) + wikipedia.output(u'%s has been already welcomed when i was loading all the users... skipping' % username.titleWithoutNamespace()) continue # That's the log if log_variable == True and logg:
pywikipedia-l@lists.wikimedia.org