Mercurial > libervia-backend
comparison plugins/plugin_xep_0045.py @ 183:9ee4a1d0d7fb
Added auto(dis)connect params + misc
- parameters,xmlui: "bool" type is now managed
- parameters,xmlui: categories now use label in addition of name
- QuickFrontend: auto(dis)connection management
- plugin XEP-0045: an error dialog is now show in frontend if room cannot be joined
- Wix: fixed unproper close event management
author | Goffi <goffi@goffi.org> |
---|---|
date | Wed, 18 Aug 2010 15:57:26 +0800 |
parents | 7201851d9aed |
children | 3d7a06fe3997 |
comparison
equal
deleted
inserted
replaced
182:556c2bd7c344 | 183:9ee4a1d0d7fb |
---|---|
94 self.clients[profile].joined_rooms[room_jid] = room | 94 self.clients[profile].joined_rooms[room_jid] = room |
95 self.host.bridge.roomJoined(room.roomIdentifier, room.service, [user.nick for user in room.roster.values()], room.nick, profile) | 95 self.host.bridge.roomJoined(room.roomIdentifier, room.service, [user.nick for user in room.roster.values()], room.nick, profile) |
96 | 96 |
97 def __err_joining_room(self, failure, profile): | 97 def __err_joining_room(self, failure, profile): |
98 """Called when something is going wrong when joining the room""" | 98 """Called when something is going wrong when joining the room""" |
99 error ("Error when joining the room") | 99 mess = _("Error when joining the room") |
100 #TODO: gof: send an error message throught the bridge | 100 error (mess) |
101 self.host.bridge.newAlert(mess, _("Group chat error"), "ERROR", profile) | |
101 | 102 |
102 def getRoomJoined(self, profile_key='@DEFAULT@'): | 103 def getRoomJoined(self, profile_key='@DEFAULT@'): |
103 """Return room where user is""" | 104 """Return room where user is""" |
104 profile = self.host.memory.getProfileName(profile_key) | 105 profile = self.host.memory.getProfileName(profile_key) |
105 result = [] | 106 result = [] |