[Zope-Checkins] SVN: Zope/trunk/src/OFS/userfolder.py - doesn't make a difference here, but the right API method for getting the user ID is getId, not getUserName

Yvo Schubbe y.2010 at wcm-solutions.de
Mon Dec 27 06:08:38 EST 2010


Log message for revision 119159:
  - doesn't make a difference here, but the right API method for getting the user ID is getId, not getUserName

Changed:
  U   Zope/trunk/src/OFS/userfolder.py

-=-
Modified: Zope/trunk/src/OFS/userfolder.py
===================================================================
--- Zope/trunk/src/OFS/userfolder.py	2010-12-27 11:04:11 UTC (rev 119158)
+++ Zope/trunk/src/OFS/userfolder.py	2010-12-27 11:08:37 UTC (rev 119159)
@@ -122,7 +122,7 @@
                 pw = u._getPassword()
                 if not self._isPasswordEncrypted(pw):
                     pw = self._encryptPassword(pw)
-                    self._doChangeUser(u.getUserName(), pw, u.getRoles(),
+                    self._doChangeUser(u.getId(), pw, u.getRoles(),
                                        u.getDomains())
                     changed = changed + 1
             if REQUEST is not None:



More information about the Zope-Checkins mailing list