[Pywikipedia-svn] SVN: [7319] trunk/pywikipedia/welcome.py

filnik at svn.wikimedia.org filnik at svn.wikimedia.org
Sat Sep 26 09:04:41 UTC 2009


Revision: 7319
Author:   filnik
Date:     2009-09-26 09:04:41 +0000 (Sat, 26 Sep 2009)

Log Message:
-----------
Little bugfix (unicode -> string) and fix to patch: #2866754

Modified Paths:
--------------
    trunk/pywikipedia/welcome.py

Modified: trunk/pywikipedia/welcome.py
===================================================================
--- trunk/pywikipedia/welcome.py	2009-09-25 16:07:41 UTC (rev 7318)
+++ trunk/pywikipedia/welcome.py	2009-09-26 09:04:41 UTC (rev 7319)
@@ -285,6 +285,7 @@
         'es': u'{{subst:bienvenido usuario}} %s',
         'fr': u'{{Bienvenue}} %s',
         'it': u'{{subst:Benvenuto}} %s',
+        'en': u'{{subst:Welcome}}\n\n{{subst:Talktome}} %s',
     },
 }
 # The edit summary for updating the welcome log (e.g. Updating log).
@@ -391,7 +392,7 @@
 random_sign = {
     'ar': u'Project:سجل الترحيب/توقيعات',
     'da': u'Wikipedia:Velkommen/Signaturer',
-    'en': u'User:Filnik/Sign',
+    'en': u'Project:Welcome log/Sign',
     'fa': u'Project:سیاهه خوشامد/امضاها',
     'fr': u'Projet:Service de Parrainage Actif/Signatures',
     'it': u'Project:Benvenuto_Bot/Firme',
@@ -888,6 +889,7 @@
             #username = username.encode(config.console_encoding)
             lower_uname = username.lower()
             for word in elenco: # elenco = list of bad words
+                lower_uname = str(lower_uname)
                 if word.lower() in lower_uname:
                     baduser = True
                     # The format of the italian report template is:





More information about the Pywikipedia-svn mailing list