# HG changeset patch # User Sylvain Thenault # Date 1231160978 -3600 # Node ID 0d9aca19b3d0182927f94740c3a6e42baf81fb58 # Parent 247947250382b5ebeaafe22bcd32580a6b5f6839 make req argument optional diff -r 247947250382 -r 0d9aca19b3d0 dbapi.py --- a/dbapi.py Mon Jan 05 14:09:18 2009 +0100 +++ b/dbapi.py Mon Jan 05 14:09:38 2009 +0100 @@ -428,7 +428,7 @@ raise ProgrammingError('Closed connection') return self._repo.source_defs() - def user(self, req, props=None): + def user(self, req=None, props=None): """return the User object associated to this connection""" # cnx validity is checked by the call to .user_info eid, login, groups, properties = self._repo.user_info(self.sessionid, props)