예제 #1
0
 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()
예제 #2
0
 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()