Mercurial > libervia-backend
changeset 187:12544ea2951f
Core: removed addItem for roster list, according to http://wokkel.ik.nu/ticket/56
author | Goffi <goffi@goffi.org> |
---|---|
date | Wed, 18 Aug 2010 17:27:15 +0800 |
parents | 33e618d385cf |
children | 22cbd3837233 |
files | sat.tac |
diffstat | 1 files changed, 10 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/sat.tac Wed Aug 18 17:26:34 2010 +0800 +++ b/sat.tac Wed Aug 18 17:27:15 2010 +0800 @@ -153,10 +153,11 @@ 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 @@ 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 @@ 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@'):