##// END OF EJS Templates
changes to integrate to the web interface
imanay -
r141:142
parent child
Show More
@@ -40,10 +40,7
40 No newline at end of file
40
41 def sendFile(self, filename): No newline at end of file
41 def sendFile(self, filename):
42
42
No newline at end of file
43 data = self.__readFile(filename) No newline at end of file
43 # data = self.abs2ControlModuleFormatFile(filename)
No newline at end of file
44 tmp = self.__readFile(filename)
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
47 self.__ConnectionWithCentralControl(cmd = "SNDF", data = data) No newline at end of file
44 self.__ConnectionWithCentralControl(cmd = "SNDF", data = data)
48 No newline at end of file
45
49 def changeBeam(self, newBeam): No newline at end of file
46 def changeBeam(self, newBeam):
@@ -145,6 +145,7
145 def __sendFile2Modules(self,cmd): No newline at end of file
145 def __sendFile2Modules(self,cmd):
146 No newline at end of file
146
147 rx_buffer_lst = self.rx_buffer.split('\n',1) No newline at end of file
147 rx_buffer_lst = self.rx_buffer.split('\n',1)
148 #Getting the filename from the begining of data No newline at end of file
148 filename = rx_buffer_lst[0] No newline at end of file
149 filename = rx_buffer_lst[0]
149 tmp = rx_buffer_lst[1] No newline at end of file
150 tmp = rx_buffer_lst[1]
150 self.__writeFile(filename,tmp) No newline at end of file
151 self.__writeFile(filename,tmp)
General Comments 0
You need to be logged in to leave comments. Login now