##// END OF EJS Templates
changes to integrate to the web interface
imanay -
r139:140
parent child
Show More
@@ -41,7 +41,9
41 def sendFile(self, filename): No newline at end of file
41 def sendFile(self, filename):
42 No newline at end of file
42
43 # data = self.abs2ControlModuleFormatFile(filename)
43 # data = self.abs2ControlModuleFormatFile(filename)
No newline at end of file
44 tmp = self.__readFile(filename)
44 data = self.__readFile(filename) No newline at end of file
No newline at end of file
45 #Sending content of file and the file name
No newline at end of file
46 data = filename + '\n' + tmp No newline at end of file
45 self.__ConnectionWithCentralControl(cmd = "SNDF", data = data) No newline at end of file
47 self.__ConnectionWithCentralControl(cmd = "SNDF", data = data)
46 No newline at end of file
48
47 def changeBeam(self, newBeam): No newline at end of file
49 def changeBeam(self, newBeam):
@@ -144,8 +144,10
144 No newline at end of file
144
145 def __sendFile2Modules(self,cmd): No newline at end of file
145 def __sendFile2Modules(self,cmd):
146
146
No newline at end of file
147 rx_buffer_lst = self.rx_buffer.split('\n',1)
147 filename = "tmp.txt"
No newline at end of file
No newline at end of file
148 filename = rx_buffer_lst[0]
148 self.__writeFile(filename,self.rx_buffer) No newline at end of file
No newline at end of file
149 tmp = rx_buffer_lst[1]
No newline at end of file
150 self.__writeFile(filename,tmp) No newline at end of file
149 data = self.abs2ControlModuleFormatFile(filename) No newline at end of file
151 data = self.abs2ControlModuleFormatFile(filename)
150 #Needed for the loop No newline at end of file
152 #Needed for the loop
151 header, control_modules_lst = self.__All2Blocks(data) No newline at end of file
153 header, control_modules_lst = self.__All2Blocks(data)
General Comments 0
You need to be logged in to leave comments. Login now