Mercurial > libervia-backend
diff frontends/quick_frontend/quick_chat.py @ 132:a86607e5cf38
quick_app: self.occupants for group chat are now managed by quick_chat. self.options.profile now support unicode
author | Goffi <goffi@goffi.org> |
---|---|
date | Fri, 16 Jul 2010 20:12:54 +0800 |
parents | 1ca5f254ce41 |
children | 80661755ea8d |
line wrap: on
line diff
--- a/frontends/quick_frontend/quick_chat.py Wed Jul 14 19:36:40 2010 +0800 +++ b/frontends/quick_frontend/quick_chat.py Fri Jul 16 20:12:54 2010 +0800 @@ -48,6 +48,7 @@ if self.type != "group": error (_("[INTERNAL] trying to set presents nicks for a non group chat window")) raise Exception("INTERNAL ERROR") #TODO: raise proper Exception here + self.occupants.update(nicks) def replaceUser(self, nick): """Add user if it is not in the group list""" @@ -55,6 +56,7 @@ if self.type != "group": error (_("[INTERNAL] trying to replace user for a non group chat window")) raise Exception("INTERNAL ERROR") #TODO: raise proper Exception here + self.occupants.add(nick) def setUserNick(self, nick): """Set the nick of the user, usefull for e.g. change the color of the user""" @@ -66,6 +68,7 @@ if self.type != "group": error (_("[INTERNAL] trying to remove user for a non group chat window")) raise Exception("INTERNAL ERROR") #TODO: raise proper Exception here + self.occupants.remove(nick) def setSubject(self, subject): """Set title for a group chat"""