wix: fixed onShowProfile
This commit is contained in:
parent
f6673e0725
commit
0ff17993f2
2 changed files with 5 additions and 6 deletions
|
|
@ -484,14 +484,14 @@ class MainWindow(wx.Frame, QuickApp):
|
|||
dlg.ShowModal()
|
||||
dlg.Destroy()
|
||||
return
|
||||
_id = self.bridge.getCard(target.bare, profile_key=self.profile)
|
||||
_id = self.bridge.getCard(target.bare, self.profile)
|
||||
self.current_action_ids.add(_id)
|
||||
self.current_action_ids_cb[_id] = self.onProfileReceived
|
||||
|
||||
def onProfileReceived(self, data):
|
||||
"""Called when a profile is received"""
|
||||
debug (_('Profile received: [%s]') % data)
|
||||
profile=Profile(self, data)
|
||||
Profile(self, data)
|
||||
|
||||
def onJoinRoom(self, e):
|
||||
warning('FIXME: temporary menu, must be improved')
|
||||
|
|
|
|||
|
|
@ -21,8 +21,7 @@
|
|||
from sat.core.i18n import _
|
||||
from sat.core.constants import Const as C
|
||||
from logging import debug, info, error
|
||||
from twisted.internet import threads
|
||||
from twisted.internet.defer import inlineCallbacks, returnValue
|
||||
from twisted.internet import threads, defer
|
||||
from twisted.words.protocols.jabber import jid
|
||||
from twisted.words.protocols.jabber.xmlstream import IQ
|
||||
from twisted.words.xish import domish
|
||||
|
|
@ -156,7 +155,7 @@ class XEP_0054(object):
|
|||
debug(_("file [%s] already in cache") % image_hash)
|
||||
return image_hash
|
||||
|
||||
@inlineCallbacks
|
||||
@defer.inlineCallbacks
|
||||
def vCard2Dict(self, vcard, target, profile):
|
||||
"""Convert a VCard to a dict, and save binaries"""
|
||||
debug(_("parsing vcard"))
|
||||
|
|
@ -183,7 +182,7 @@ class XEP_0054(object):
|
|||
else:
|
||||
info(_('FIXME: [%s] VCard tag is not managed yet') % elem.name)
|
||||
|
||||
returnValue(dictionary)
|
||||
defer.returnValue(dictionary)
|
||||
|
||||
def vcard_ok(self, answer, profile):
|
||||
"""Called after the first get IQ"""
|
||||
|
|
|
|||
Loading…
Reference in a new issue