Mercurial > libervia-backend
comparison frontends/src/quick_frontend/quick_app.py @ 1382:b01efa1c0f5e
quick_frontend, primitivus: better PEP-8 compliance + remove/rename some (Quick)Chat attributes:
- remove QuickChat.id, use QuickChat.target instead
- rename Chat.present_panel to Chat.occupants_panel
- rename Chat.present_wid to Chat.occupants_list
author | souliane <souliane@mailoo.org> |
---|---|
date | Sun, 22 Mar 2015 14:20:19 +0100 |
parents | 8aa32bcc3a9c |
children | 1f3513cfb246 |
comparison
equal
deleted
inserted
replaced
1381:0d12d4e32664 | 1382:b01efa1c0f5e |
---|---|
531 """Called when a MUC room is joined""" | 531 """Called when a MUC room is joined""" |
532 log.debug("Room [%(room_jid)s] joined by %(profile)s, users presents:%(users)s" % {'room_jid': room_jid_s, 'profile': profile, 'users': room_nicks}) | 532 log.debug("Room [%(room_jid)s] joined by %(profile)s, users presents:%(users)s" % {'room_jid': room_jid_s, 'profile': profile, 'users': room_nicks}) |
533 room_jid = jid.JID(room_jid_s) | 533 room_jid = jid.JID(room_jid_s) |
534 chat_widget = self.widgets.getOrCreateWidget(quick_chat.QuickChat, room_jid, type_=C.CHAT_GROUP, profile=profile) | 534 chat_widget = self.widgets.getOrCreateWidget(quick_chat.QuickChat, room_jid, type_=C.CHAT_GROUP, profile=profile) |
535 chat_widget.setUserNick(user_nick) | 535 chat_widget.setUserNick(user_nick) |
536 chat_widget.id = room_jid # FIXME: to be removed | |
537 self.contact_lists[profile].setSpecial(room_jid, C.CONTACT_SPECIAL_GROUP) | 536 self.contact_lists[profile].setSpecial(room_jid, C.CONTACT_SPECIAL_GROUP) |
538 | 537 |
539 def roomLeftHandler(self, room_jid_s, profile): | 538 def roomLeftHandler(self, room_jid_s, profile): |
540 """Called when a MUC room is left""" | 539 """Called when a MUC room is left""" |
541 log.debug("Room [%(room_jid)s] left by %(profile)s" % {'room_jid': room_jid_s, 'profile': profile}) | 540 log.debug("Room [%(room_jid)s] left by %(profile)s" % {'room_jid': room_jid_s, 'profile': profile}) |