changeset 3163 | edfe43ceaa35 |
parent 2792 | 135580d15d42 |
parent 3110 | 757d36162235 |
child 3293 | 69c0ba095536 |
--- a/dbapi.py Wed Sep 02 16:42:07 2009 +0200 +++ b/dbapi.py Thu Sep 10 08:13:22 2009 +0200 @@ -285,6 +285,12 @@ # server session compat layer ############################################# + def hijack_user(self, user): + """return a fake request/session using specified user""" + req = DBAPIRequest(self.vreg) + req.set_connection(self.cnx, user) + return req + @property def user(self): if self._user is None and self.cnx: