# HG changeset patch # User souliane # Date 1450780785 -3600 # Node ID 2e2fb462729a70d4ee6bc74741206379b3b3009e # Parent ad20cedbf25e84eb288541b4fede259b62d0640b quick_frontend, primitivus (chat): printing the history is left to quick_frontend diff -r ad20cedbf25e -r 2e2fb462729a frontends/src/primitivus/chat.py --- a/frontends/src/primitivus/chat.py Fri Dec 18 19:36:00 2015 +0100 +++ b/frontends/src/primitivus/chat.py Tue Dec 22 11:39:45 2015 +0100 @@ -93,9 +93,7 @@ PrimitivusWidget.__init__(self, self.pile, self.target) # we must adapt the behaviour with the type - if type_ == C.CHAT_ONE2ONE: - self.historyPrint(profile=self.profile) - elif type_ == C.CHAT_GROUP: + if type_ == C.CHAT_GROUP: if len(self.chat_colums.contents) == 1: self.occupants_list = sat_widgets.GenericList([], option_type=sat_widgets.ClickableText, on_click=self._occupantsClicked) self.occupants_panel = sat_widgets.VerticalSeparator(self.occupants_list) diff -r ad20cedbf25e -r 2e2fb462729a frontends/src/quick_frontend/quick_chat.py --- a/frontends/src/quick_frontend/quick_chat.py Fri Dec 18 19:36:00 2015 +0100 +++ b/frontends/src/quick_frontend/quick_chat.py Tue Dec 22 11:39:45 2015 +0100 @@ -52,6 +52,9 @@ self.nick = None self.games = {} # key=game name (unicode), value=instance of quick_games.RoomGame + if type_ == C.CHAT_ONE2ONE: + self.historyPrint(profile=self.profile) + def __str__(self): return u"Chat Widget [target: {}, type: {}, profile: {}]".format(self.target, self.type, self.profile)