def GetCommitInformation(transid):
 loc = data_store.DB.Location()
 if (not os.path.exists(loc)):
  return False
 if (not os.path.isdir(loc)):
  return False
 tempdir = _GetTransactionDirectory(loc, transid)
 tempfile = utils.JoinPath(tempdir, constants.TRANSACTION_FILENAME)
 if (not os.path.exists(tempfile)):
  return None
 if (not os.path.isfile(tempfile)):
  return None
 with open(tempfile, 'rb') as fp:
  return rdf_data_server.DataServerRebalance(fp.read())

def GetCommitInformation ( transid ) : loc = data_store . DB . Location ( ) if ( not os . path . exists ( loc ) ) : return False if ( not os . path . isdir ( loc ) ) : return False tempdir = _GetTransactionDirectory ( loc , transid ) tempfile = utils . JoinPath ( tempdir , constants . TRANSACTION_FILENAME ) if ( not os . path . exists ( tempfile ) ) : return None if ( not os . path . isfile ( tempfile ) ) : return None with open ( tempfile , 'rb' ) as fp : return rdf_data_server . DataServerRebalance ( fp . read ( ) )
read transaction information from stored file .