server/sources/native.py
changeset 10351 91e63306e277
parent 10301 729f36a1bcfa
child 10356 a009a31fb1ea
equal deleted inserted replaced
10350:31327bd26931 10351:91e63306e277
  1108         'tx_entity_actions' or 'tx_relation_action')
  1108         'tx_entity_actions' or 'tx_relation_action')
  1109         """
  1109         """
  1110         kwargs['tx_uuid'] = cnx.transaction_uuid()
  1110         kwargs['tx_uuid'] = cnx.transaction_uuid()
  1111         kwargs['txa_action'] = action
  1111         kwargs['txa_action'] = action
  1112         kwargs['txa_order'] = cnx.transaction_inc_action_counter()
  1112         kwargs['txa_order'] = cnx.transaction_inc_action_counter()
  1113         kwargs['txa_public'] = cnx.running_dbapi_query
  1113         kwargs['txa_public'] = not cnx.hooks_in_progress
  1114         self.doexec(cnx, self.sqlgen.insert(table, kwargs), kwargs)
  1114         self.doexec(cnx, self.sqlgen.insert(table, kwargs), kwargs)
  1115 
  1115 
  1116     def _tx_info(self, cnx, txuuid):
  1116     def _tx_info(self, cnx, txuuid):
  1117         """return transaction's time and user of the transaction with the given uuid.
  1117         """return transaction's time and user of the transaction with the given uuid.
  1118 
  1118