##// END OF EJS Templates
changes to integrate to the web interface
imanay -
r141:142
parent child
Show More
@@ -40,10 +40,7
40 40
41 41 def sendFile(self, filename):
42 42
43 # data = self.abs2ControlModuleFormatFile(filename)
44 tmp = self.__readFile(filename)
45 #Sending content of file and the file name
46 data = filename + '\n' + tmp
43 data = self.__readFile(filename)
47 44 self.__ConnectionWithCentralControl(cmd = "SNDF", data = data)
48 45
49 46 def changeBeam(self, newBeam):
@@ -61,7 +58,9
61 58 fobj = open(filename,"r")
62 59 listData = fobj.readlines()
63 60 fobj.close()
64 data = "".join(listData)
61 tmp = "".join(listData)
62 #Adding filename to the begining of the data
63 data = filename + '\n' + tmp
65 64 return data
66 65
67 66
@@ -145,6 +145,7
145 145 def __sendFile2Modules(self,cmd):
146 146
147 147 rx_buffer_lst = self.rx_buffer.split('\n',1)
148 #Getting the filename from the begining of data
148 149 filename = rx_buffer_lst[0]
149 150 tmp = rx_buffer_lst[1]
150 151 self.__writeFile(filename,tmp)
General Comments 0
You need to be logged in to leave comments. Login now