##// END OF EJS Templates
imanay -
r235:236
parent child
Show More
@@ -45,9 +45,9
45 answer = self.__ConnectionWithCentralControl(cmd = "SNDF", data = data)
45 answer = self.__ConnectionWithCentralControl(cmd = "SNDF", data = data)
46 return answer
46 return answer
47
47
48 def readFile(self):
48 def readFile(self,filename):
49
49
50 data = "optional"
50 data = filename
51 file = self.__ConnectionWithCentralControl(cmd = "GETF", data = data)
51 file = self.__ConnectionWithCentralControl(cmd = "GETF", data = data)
52
52
53 return file
53 return file
@@ -11,9 +11,9
11 def __init__(self):
11 def __init__(self):
12 self.output = ""
12 self.output = ""
13
13
14 def execute(self):
14 def execute(self, filename):
15 absObj = ABSClient(ipDestino="10.10.20.27")
15 absObj = ABSClient(ipDestino="10.10.20.27")
16 self.output = absObj.readFile()
16 self.output = absObj.readFile(filename)
17
17
18 def getOutput(self):
18 def getOutput(self):
19 return self.output
19 return self.output
@@ -22,7 +22,8
22
22
23 if __name__ == '__main__':
23 if __name__ == '__main__':
24
24
25 filename = "tres_apuntes.ab1"
25 app = readFile()
26 app = readFile()
26 app.execute()
27 app.execute(filename)
27
28
28 print app.output
29 print app.output
General Comments 0
You need to be logged in to leave comments. Login now