Mercurial > libervia-backend
comparison frontends/quick_frontend/quick_app.py @ 13:bd9e9997d540
wokkel integration (not finished yet)
author | Goffi <goffi@goffi.org> |
---|---|
date | Fri, 30 Oct 2009 17:38:27 +0100 |
parents | c4bc297b82f0 |
children | 6928e3cb73a8 |
comparison
equal
deleted
inserted
replaced
12:ef8060d365cb | 13:bd9e9997d540 |
---|---|
21 | 21 |
22 from logging import debug, info, error | 22 from logging import debug, info, error |
23 from tools.jid import JID | 23 from tools.jid import JID |
24 from sat_bridge_frontend.DBus import DBusBridgeFrontend | 24 from sat_bridge_frontend.DBus import DBusBridgeFrontend |
25 from quick_frontend.quick_contact_management import QuickContactManagement | 25 from quick_frontend.quick_contact_management import QuickContactManagement |
26 | |
27 | 26 |
28 | 27 |
29 class QuickApp(): | 28 class QuickApp(): |
30 """This class contain the main methods needed for the frontend""" | 29 """This class contain the main methods needed for the frontend""" |
31 | 30 |
124 self.onlineContact.add(jid) #FIXME onlineContact is useless with CM, must be removed | 123 self.onlineContact.add(jid) #FIXME onlineContact is useless with CM, must be removed |
125 self.CM.add(jid) | 124 self.CM.add(jid) |
126 self.contactList.replace(jid, show=show, status=status, name=name, group=group) | 125 self.contactList.replace(jid, show=show, status=status, name=name, group=group) |
127 | 126 |
128 | 127 |
129 if type=="unavailable" and jid.short in self.onlineContact: | 128 if type=="unavailable" and jid in self.onlineContact: |
130 self.onlineContact.remove(jid.short) | 129 self.onlineContact.remove(jid) |
131 self.CM.remove(jid) | 130 self.CM.remove(jid) |
132 self.contactList.remove(jid) | 131 self.contactList.remove(jid) |
133 | 132 |
134 | 133 |
135 def showDialog(self, message, title, type="info"): | 134 def showDialog(self, message, title, type="info"): |