def transfer_toClient( self, fileId, token, fileHelper ): retVal = gServiceInterface.getGraphData( fileId ) if not retVal[ 'OK' ]: return retVal retVal = fileHelper.sendData( retVal[ 'Value' ] ) if not retVal[ 'OK' ]: return retVal fileHelper.sendEOF() return S_OK()
def transfer_toClient(self, fileId, token, fileHelper): """ Transfers files """ retVal = gServiceInterface.getGraphData(fileId) if not retVal["OK"]: return retVal retVal = fileHelper.sendData(retVal["Value"]) if not retVal["OK"]: return retVal fileHelper.sendEOF() return S_OK()