You are not logged in Log in Join
You are here: Home » Members » jim » ZODB » CommitVersion

Log in
Name

Password

 
 

History for CommitVersion

??changed:
-
<pre>
def commitVersion(self, src, dest, transaction):
    if transaction is not self._transaction:
        raise POSException.StorageTransactionError(self, transaction)
    self._lock_acquire()
    try:
       if dest:
           raise "Some Exception Saying we don't allow this"
       recs = GetCurrentOidsInVersion (src):
       if not recs:  return
       oids = []
       oappend = oids.append
       for rec in recs:
           oappend(rec.z_oid)
       InsertCommittedVersion (self._serial, src)
       ClearVersionStatus (src)
       return oids
    finally:
       self._lock_release()
</pre>