dbapi.py
branchtls-sprint
changeset 1398 5fe84a5f7035
parent 1132 96752791c2b6
child 1524 1d7575f5deaf
equal deleted inserted replaced
1397:6cbc7bc8ea6d 1398:5fe84a5f7035
   428         """return the User object associated to this connection"""
   428         """return the User object associated to this connection"""
   429         # cnx validity is checked by the call to .user_info
   429         # cnx validity is checked by the call to .user_info
   430         eid, login, groups, properties = self._repo.user_info(self.sessionid, props)
   430         eid, login, groups, properties = self._repo.user_info(self.sessionid, props)
   431         if req is None:
   431         if req is None:
   432             req = self.request()
   432             req = self.request()
   433         rset = req.eid_rset(eid, 'EUser')
   433         rset = req.eid_rset(eid, 'CWUser')
   434         user = self.vreg.etype_class('EUser')(req, rset, row=0, groups=groups,
   434         user = self.vreg.etype_class('CWUser')(req, rset, row=0, groups=groups,
   435                                               properties=properties)
   435                                                properties=properties)
   436         user['login'] = login # cache login
   436         user['login'] = login # cache login
   437         return user
   437         return user
   438 
   438 
   439     def __del__(self):
   439     def __del__(self):
   440         """close the remote connection if necessary"""
   440         """close the remote connection if necessary"""