web/request.py
changeset 9821 2077c8da1893
parent 9818 e3d2012adcd0
parent 9774 b7b71be569cf
child 9897 fa44db7da2dc
equal deleted inserted replaced
9819:95902c0b991b 9821:2077c8da1893
  1025                                                        form=form, headers=headers)
  1025                                                        form=form, headers=headers)
  1026         from cubicweb.dbapi import DBAPISession, _NeedAuthAccessMock
  1026         from cubicweb.dbapi import DBAPISession, _NeedAuthAccessMock
  1027         self.session = DBAPISession(None)
  1027         self.session = DBAPISession(None)
  1028         self.cnx = self.user = _NeedAuthAccessMock()
  1028         self.cnx = self.user = _NeedAuthAccessMock()
  1029 
  1029 
       
  1030     @property
       
  1031     def transaction_data(self):
       
  1032         return self.cnx.transaction_data
       
  1033 
  1030     def set_cnx(self, cnx):
  1034     def set_cnx(self, cnx):
  1031         self.cnx = cnx
  1035         self.cnx = cnx
  1032         self.session = cnx._session
  1036         self.session = cnx._session
  1033         self._set_user(cnx.user)
  1037         self._set_user(cnx.user)
  1034         self.set_user_language(cnx.user)
  1038         self.set_user_language(cnx.user)