https://bugzilla.wikimedia.org/show_bug.cgi?id=61832

Merlijn van Deen <valhall...@arctus.nl> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |easy

--- Comment #3 from Merlijn van Deen <valhall...@arctus.nl> ---
It's just the _ in the user name -- we determine user names like this:

       if not self.nocapitalize:                                               
                                                                               
                                                          if user:
                user = user[0].upper() + user[1:]                              
                                                                               
                                                           if sysop:
                sysop = sysop[0].upper() + sysop[1:]    

(site.py)

and compare that to what the API returns (which is a capitalized-or-not name
with spaces, not underscores).

The better solution would be to either
a) normalize the username (with a Page object -- which I guess is OK because
Page objects are used more often in Site)
or
b) comparing the usernames with site.sametitle (which currently does not take
underscores into account, but should)

Marking as 'easy' for anyone willing to pick up option a)

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to