Core: removed addItem for roster list, according to http://wokkel.ik.nu/ticket/56
This commit is contained in:
parent
180d0d49e7
commit
c01dc8fefc
1 changed files with 10 additions and 6 deletions
16
sat.tac
16
sat.tac
|
|
@ -153,10 +153,11 @@ class SatRosterProtocol(xmppim.RosterClientProtocol):
|
|||
xmppim.RosterClientProtocol.removeItem(self, to)
|
||||
#TODO: check IQ result
|
||||
|
||||
def addItem(self, to):
|
||||
"""Add a contact to roster list"""
|
||||
xmppim.RosterClientProtocol.addItem(self, to)
|
||||
#TODO: check IQ result
|
||||
#XXX: disabled (cf http://wokkel.ik.nu/ticket/56))
|
||||
#def addItem(self, to):
|
||||
#"""Add a contact to roster list"""
|
||||
#xmppim.RosterClientProtocol.addItem(self, to)
|
||||
#TODO: check IQ result"""
|
||||
|
||||
def onRosterSet(self, item):
|
||||
"""Called when a new/update roster item is received"""
|
||||
|
|
@ -608,7 +609,10 @@ class SAT(service.Service):
|
|||
self.profiles[profile].presence.available(to_jid, show, statuses, priority)
|
||||
|
||||
def subscription(self, subs_type, raw_jid, profile_key='@DEFAULT@'):
|
||||
"""Called to manage subscription"""
|
||||
"""Called to manage subscription
|
||||
@param subs_type: subsciption type (cf RFC 3921)
|
||||
@param raw_jid: unicode entity's jid
|
||||
@param profile_key: profile"""
|
||||
profile = self.memory.getProfileName(profile_key)
|
||||
assert(profile)
|
||||
to_jid = jid.JID(raw_jid)
|
||||
|
|
@ -632,7 +636,7 @@ class SAT(service.Service):
|
|||
profile = self.memory.getProfileName(profile_key)
|
||||
assert(profile)
|
||||
to_jid=jid.JID(to)
|
||||
self.profiles[profile].roster.addItem(to_jid)
|
||||
#self.profiles[profile].roster.addItem(to_jid) XXX: disabled (cf http://wokkel.ik.nu/ticket/56))
|
||||
self.profiles[profile].presence.subscribe(to_jid)
|
||||
|
||||
def delContact(self, to, profile_key='@DEFAULT@'):
|
||||
|
|
|
|||
Loading…
Reference in a new issue