server/session.py
changeset 10264 d5403de0792b
parent 10171 f4f9bff9cf06
child 10301 729f36a1bcfa
equal deleted inserted replaced
10263:7c4e090bc25f 10264:d5403de0792b
   969 
   969 
   970     @_open_only
   970     @_open_only
   971     def transaction_uuid(self, set=True):
   971     def transaction_uuid(self, set=True):
   972         uuid = self.transaction_data.get('tx_uuid')
   972         uuid = self.transaction_data.get('tx_uuid')
   973         if set and uuid is None:
   973         if set and uuid is None:
   974             self.transaction_data['tx_uuid'] = uuid = uuid4().hex
   974             self.transaction_data['tx_uuid'] = uuid = unicode(uuid4().hex)
   975             self.repo.system_source.start_undoable_transaction(self, uuid)
   975             self.repo.system_source.start_undoable_transaction(self, uuid)
   976         return uuid
   976         return uuid
   977 
   977 
   978     @_open_only
   978     @_open_only
   979     def transaction_inc_action_counter(self):
   979     def transaction_inc_action_counter(self):