equal
deleted
inserted
replaced
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() |