Logo Search packages:      
Sourcecode: zope-exuserfolder version File versions

def zope-exuserfolder-0.50.0::exUserFolder::exUserFolder::getUser (   self,
  name 
)

Return the named user object or None if no such user exists

Definition at line 780 of file exUserFolder.py.

00780                              :
            """Return the named user object or None if no such user exists"""
            user = self.cache_getUser(name, '', 0)
            if user:
                  return user
            try:
                  items=self.listOneUser(name)
            except:
                  zLOG.LOG("exUserFolder", zLOG.ERROR,
                                 "error trying to list user %s" % name,
                                 '',
                                 sys.exc_info())
                  return None

            if not items:
                  return None
            
            for people in items:
                  user =  User({'name':    people['username'],
                                      'password':people['password'],
                                      'roles':   people['roles'],
                                      'domains':      ''},
                                     self.currentPropSource,
                                     self.cryptPassword,
                                     self.currentAuthSource,
                                     self.currentGroupSource)
                  return user
            return None
            
      def manage_userActions(self, submit=None, userids=None, REQUEST={}):


Generated by  Doxygen 1.6.0   Back to index