Exemple #1
0
 def handle_command(self, command):
     if not self.handler:
         self.serr(None, visible_command(command),
                   Exception("No handler set!"))
     else:
         self.sdebug(None, visible_command(command))
         return self.handler.handle_command(command)
Exemple #2
0
 def lineReceived(self, line):
     self.sdebug(None, visible_command(line))
     self.handle_command(line)
Exemple #3
0
 def send_message(self, msg):
     self.sdebug(None, visible_command(msg))
     self.sendLine(msg)
Exemple #4
0
	def send_message(self, msg):
		self.sdebug(None, visible_command(msg))
		self.sendLine(msg)
Exemple #5
0
	def handle_command(self, command):
		if not self.handler:
			self.serr(None, visible_command(command), Exception("No handler set!"))
		else:
			self.sdebug(None, visible_command(command))
			return	self.handler.handle_command(command)
Exemple #6
0
	def lineReceived(self, line):
		self.sdebug(None, visible_command(line))
		self.handle_command(line)