server/session.py
changeset 4896 45a1c3f0d0d9
parent 4850 bd640b137f50
child 4899 c666d265fb95
equal deleted inserted replaced
4895:7003912cec86 4896:45a1c3f0d0d9
   139             self.cnxtype, unicode(self.user.login), self.id, id(self))
   139             self.cnxtype, unicode(self.user.login), self.id, id(self))
   140 
   140 
   141     def hijack_user(self, user):
   141     def hijack_user(self, user):
   142         """return a fake request/session using specified user"""
   142         """return a fake request/session using specified user"""
   143         session = Session(user, self.repo)
   143         session = Session(user, self.repo)
   144         session._threaddata.pool = pool
   144         session._threaddata.pool = self.pool
   145         return session
   145         return session
   146 
   146 
   147     def add_relation(self, fromeid, rtype, toeid):
   147     def add_relation(self, fromeid, rtype, toeid):
   148         """provide direct access to the repository method to add a relation.
   148         """provide direct access to the repository method to add a relation.
   149 
   149