equal
deleted
inserted
replaced
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) |