[Zope] Password 2nd Posting

Stuart 'Zen' Bishop zen@cs.rmit.edu.au
Sat, 30 Oct 1999 10:02:57 +1000 (EST)


On Fri, 29 Oct 1999, Daniel G. Rusch wrote:

> Thanks for the reply,
> 
> Before I posted my question, I crawled around
> lib/python/AccessControl/User.py, I saw both the  _getPassword and
> authenticate methods. 
> 
> But, getPassword raises the NotImplemented exception as noted below: 
> 
>  def _getPassword(self):
>         """Return the password of the user."""
>         raise NotImplemented   
> 
> Am I missing something?

Your looking at the base class BasicUser which defines the API.
The userobjects you actually get will be of another class which uses this
as a base clas, and will have overriden these methods.
(eg. if you look further down this file you will find the User
class which is the BasicUser implementation returned by the default
acl_users folder (UserFolder).

 ___
   //     Zen (alias Stuart Bishop)     Work: zen@cs.rmit.edu.au
  // E N  Senior Systems Alchemist      Play: zen@shangri-la.dropbear.id.au
 //__     Computer Science, RMIT 	 WWW: http://www.cs.rmit.edu.au/~zen