Ejemplo n.º 1
0
	def _action_client(self, client_string):
		""" Set the client type based on the ``#!client`` action found in the
		log.
		
		:param str client_string: The client string from the log
		"""
		
		if client_string.startswith("tintin"):
			last_client = self.client
			self.client = TinTin()
			if not self.client.set_client(client_string):
				self.client = last_client
		elif client_string.startswith("zmud"):
			last_client = self.client
			self.client = ZMud()
			if not self.client.set_client(client_string):
				self.client = last_client