Exemplo n.º 1
0
 def deref(self):
     """Returns either the in-transaction-value of this ref if
     there is an active transaction, or returns the last committed
     value of ref"""
     transaction = LockingTransaction.get()
     if transaction:
         return transaction.getRef(self)
     return self._currentVal()
Exemplo n.º 2
0
 def deref(self):
     """Returns either the in-transaction-value of this ref if
     there is an active transaction, or returns the last committed
     value of ref"""
     transaction = LockingTransaction.get()
     if transaction:
         return transaction.getRef(self)
     return self._currentVal()