make req argument optional
authorSylvain Thenault <sylvain.thenault@logilab.fr>
Mon, 05 Jan 2009 14:09:38 +0100
changeset 322 0d9aca19b3d0
parent 321 247947250382
child 323 30c331fb17f0
make req argument optional
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)