Пример #1
0
def dispatchDescriptor(descriptor_file):
    print("Unpacking Descriptor...")
    descriptor_file = open(descriptor_file, 'rb')
    descriptor = pickle.load(descriptor_file)
    command = 'download ' + descriptor.getFileName()
    fileClient.requestFile(descriptor.getFileHost(), descriptor.getFileName(),
                           [command], 9876)
Пример #2
0
 def dispatchDescriptor(self, descriptor_file):
     print("Unpacking Descriptor...")
     descriptor_file = open(descriptor_file, 'rb')
     descriptor = pickle.load(descriptor_file)
     command = 'download ' + descriptor.getFileName()
     fileClient.requestFile(descriptor.getFileHost(),
                            descriptor.getFileName(), [command], 9876)
     self.setStatus("Downloaded File. Check Directory")
Пример #3
0
 def dispatchDescriptor(self, descriptor_file):
     print("Unpacking Descriptor...")
     descriptor_file = open(descriptor_file, 'rb')
     descriptor = pickle.load(descriptor_file)    
     command = 'download '+descriptor.getFileName()
     fileClient.requestFile(descriptor.getFileHost(),
                        descriptor.getFileName(),
                        [command], 9876)
     self.setStatus("Downloaded File. Check Directory")
         
Пример #4
0
def dispatchDescriptor(descriptor_file):
    print("Unpacking Descriptor...")
    descriptor_file = open(descriptor_file, 'rb')
    descriptor = pickle.load(descriptor_file)    
    command = 'download '+descriptor.getFileName()
    fileClient.requestFile(descriptor.getFileHost(), descriptor.getFileName(), [command], 9876)