def transaction(self, request=None): if request is None: request = get_mocked_request(self.db) login(request) return wrap_request( request, managed_transaction( request=request, write=True, adopt_parent_txn=True))
def transaction(self, request=None): if request is None: request = get_mocked_request(db=self.db) login() return wrap_request(request, transaction(db=self.db, adopt_parent_txn=True))