equal
deleted
inserted
replaced
901 wether the connections set should be freed or not. |
901 wether the connections set should be freed or not. |
902 """ |
902 """ |
903 return transaction(self, free_cnxset) |
903 return transaction(self, free_cnxset) |
904 |
904 |
905 |
905 |
|
906 @deprecated('[3.17] do not use hijack_user. create new Session object') |
906 def hijack_user(self, user): |
907 def hijack_user(self, user): |
907 """return a fake request/session using specified user""" |
908 """return a fake request/session using specified user""" |
908 session = Session(user, self.repo) |
909 session = Session(user, self.repo) |
909 tx = session._tx |
910 tx = session._tx |
910 tx.cnxset = self.cnxset |
911 tx.cnxset = self.cnxset |