comparison frontends/src/quick_frontend/quick_chat.py @ 1762:2e2fb462729a

quick_frontend, primitivus (chat): printing the history is left to quick_frontend
author souliane <souliane@mailoo.org>
date Tue, 22 Dec 2015 11:39:45 +0100
parents d047535e3ed5
children 9b557e76a5a8
comparison
equal deleted inserted replaced
1761:ad20cedbf25e 1762:2e2fb462729a
49 self.current_target = target 49 self.current_target = target
50 self.type = type_ 50 self.type = type_
51 self.id = "" # FIXME: to be removed 51 self.id = "" # FIXME: to be removed
52 self.nick = None 52 self.nick = None
53 self.games = {} # key=game name (unicode), value=instance of quick_games.RoomGame 53 self.games = {} # key=game name (unicode), value=instance of quick_games.RoomGame
54
55 if type_ == C.CHAT_ONE2ONE:
56 self.historyPrint(profile=self.profile)
54 57
55 def __str__(self): 58 def __str__(self):
56 return u"Chat Widget [target: {}, type: {}, profile: {}]".format(self.target, self.type, self.profile) 59 return u"Chat Widget [target: {}, type: {}, profile: {}]".format(self.target, self.type, self.profile)
57 60
58 @staticmethod 61 @staticmethod