server/sources/native.py
changeset 10360 1fdbe2ea63d8
parent 10356 a009a31fb1ea
child 10364 8b35a898b334
--- a/server/sources/native.py	Tue Jun 10 15:06:44 2014 +0200
+++ b/server/sources/native.py	Wed Jun 11 13:39:56 2014 +0200
@@ -1022,11 +1022,11 @@
         with cnx.ensure_cnx_set:
             cu = self.doexec(cnx, sql, restr)
             # turn results into transaction objects
-            return [tx.Transaction(*args) for args in cu.fetchall()]
+            return [tx.Transaction(cnx, *args) for args in cu.fetchall()]
 
     def tx_info(self, cnx, txuuid):
         """See :class:`cubicweb.repoapi.Connection.transaction_info`"""
-        return tx.Transaction(txuuid, *self._tx_info(cnx, unicode(txuuid)))
+        return tx.Transaction(cnx, txuuid, *self._tx_info(cnx, unicode(txuuid)))
 
     def tx_actions(self, cnx, txuuid, public):
         """See :class:`cubicweb.repoapi.Connection.transaction_actions`"""