[Zope-dev] getUserById

Chris McDonough chrism at plope.com
Mon Dec 13 15:57:14 EST 2004


On Mon, 2004-12-13 at 19:22 +0100, Stefan H. Holek wrote:
> Hm, I'd rather not raise exceptions.
> 
> getUserById was introduced in Zope 2.2 and since then has never raised 
> anything. From what I can see it is used as a kind of alias for 
> getUser, expected to return None if the user does not exist.

FWIW, it is indeed that when you use a basic user folder.  But when you
use a user folder that makes the distinction between usernames and
userids, getUser operates like it should be named "getUserByName".

- C



More information about the Zope-Dev mailing list