dbapi.py
changeset 322 0d9aca19b3d0
parent 169 0e031b66cb0b
child 1132 96752791c2b6
equal deleted inserted replaced
321:247947250382 322:0d9aca19b3d0
   426         """
   426         """
   427         if self._closed is not None:
   427         if self._closed is not None:
   428             raise ProgrammingError('Closed connection')
   428             raise ProgrammingError('Closed connection')
   429         return self._repo.source_defs()
   429         return self._repo.source_defs()
   430 
   430 
   431     def user(self, req, props=None):
   431     def user(self, req=None, props=None):
   432         """return the User object associated to this connection"""
   432         """return the User object associated to this connection"""
   433         # cnx validity is checked by the call to .user_info
   433         # cnx validity is checked by the call to .user_info
   434         eid, login, groups, properties = self._repo.user_info(self.sessionid, props)
   434         eid, login, groups, properties = self._repo.user_info(self.sessionid, props)
   435         if req is None:
   435         if req is None:
   436             req = self.request()
   436             req = self.request()