##// 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 def sendFile(self, filename):
41 def sendFile(self, filename):
42
42
43 # data = self.abs2ControlModuleFormatFile(filename)
43 data = self.__readFile(filename)
44 tmp = self.__readFile(filename)
45 #Sending content of file and the file name
46 data = filename + '\n' + tmp
47 self.__ConnectionWithCentralControl(cmd = "SNDF", data = data)
44 self.__ConnectionWithCentralControl(cmd = "SNDF", data = data)
48
45
49 def changeBeam(self, newBeam):
46 def changeBeam(self, newBeam):
@@ -61,7 +58,9
61 fobj = open(filename,"r")
58 fobj = open(filename,"r")
62 listData = fobj.readlines()
59 listData = fobj.readlines()
63 fobj.close()
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 return data
64 return data
66
65
67
66
@@ -145,6 +145,7
145 def __sendFile2Modules(self,cmd):
145 def __sendFile2Modules(self,cmd):
146
146
147 rx_buffer_lst = self.rx_buffer.split('\n',1)
147 rx_buffer_lst = self.rx_buffer.split('\n',1)
148 #Getting the filename from the begining of data
148 filename = rx_buffer_lst[0]
149 filename = rx_buffer_lst[0]
149 tmp = rx_buffer_lst[1]
150 tmp = rx_buffer_lst[1]
150 self.__writeFile(filename,tmp)
151 self.__writeFile(filename,tmp)
General Comments 0
You need to be logged in to leave comments. Login now