server/sources/native.py
changeset 10360 1fdbe2ea63d8
parent 10356 a009a31fb1ea
child 10364 8b35a898b334
equal deleted inserted replaced
10359:8e4ba1028f55 10360:1fdbe2ea63d8
  1020         # we want results ordered by transaction's time descendant
  1020         # we want results ordered by transaction's time descendant
  1021         sql += ' ORDER BY tx_time DESC'
  1021         sql += ' ORDER BY tx_time DESC'
  1022         with cnx.ensure_cnx_set:
  1022         with cnx.ensure_cnx_set:
  1023             cu = self.doexec(cnx, sql, restr)
  1023             cu = self.doexec(cnx, sql, restr)
  1024             # turn results into transaction objects
  1024             # turn results into transaction objects
  1025             return [tx.Transaction(*args) for args in cu.fetchall()]
  1025             return [tx.Transaction(cnx, *args) for args in cu.fetchall()]
  1026 
  1026 
  1027     def tx_info(self, cnx, txuuid):
  1027     def tx_info(self, cnx, txuuid):
  1028         """See :class:`cubicweb.repoapi.Connection.transaction_info`"""
  1028         """See :class:`cubicweb.repoapi.Connection.transaction_info`"""
  1029         return tx.Transaction(txuuid, *self._tx_info(cnx, unicode(txuuid)))
  1029         return tx.Transaction(cnx, txuuid, *self._tx_info(cnx, unicode(txuuid)))
  1030 
  1030 
  1031     def tx_actions(self, cnx, txuuid, public):
  1031     def tx_actions(self, cnx, txuuid, public):
  1032         """See :class:`cubicweb.repoapi.Connection.transaction_actions`"""
  1032         """See :class:`cubicweb.repoapi.Connection.transaction_actions`"""
  1033         txuuid = unicode(txuuid)
  1033         txuuid = unicode(txuuid)
  1034         self._tx_info(cnx, txuuid)
  1034         self._tx_info(cnx, txuuid)