# SVN changeset patch # User imanay # Date 2013-08-29 22:15:04.531298 # Revision 236 Index: trunk/absroot/source/abspy/bin/client3.py =================================================================== diff --git a/trunk/absroot/source/abspy/bin/client3.py b/trunk/absroot/source/abspy/bin/client3.py --- a/trunk/absroot/source/abspy/bin/client3.py (revision 235) +++ b/trunk/absroot/source/abspy/bin/client3.py (revision 236) @@ -45,9 +45,9 @@ answer = self.__ConnectionWithCentralControl(cmd = "SNDF", data = data) return answer - def readFile(self): + def readFile(self,filename): - data = "optional" + data = filename file = self.__ConnectionWithCentralControl(cmd = "GETF", data = data) return file Index: trunk/absroot/source/abspy/scripts/readFile.py =================================================================== diff --git a/trunk/absroot/source/abspy/scripts/readFile.py b/trunk/absroot/source/abspy/scripts/readFile.py --- a/trunk/absroot/source/abspy/scripts/readFile.py (revision 235) +++ b/trunk/absroot/source/abspy/scripts/readFile.py (revision 236) @@ -11,9 +11,9 @@ def __init__(self): self.output = "" - def execute(self): + def execute(self, filename): absObj = ABSClient(ipDestino="10.10.20.27") - self.output = absObj.readFile() + self.output = absObj.readFile(filename) def getOutput(self): return self.output @@ -22,7 +22,8 @@ if __name__ == '__main__': + filename = "tres_apuntes.ab1" app = readFile() - app.execute() + app.execute(filename) print app.output