Mercurial > libervia-web
comparison libervia.tac @ 57:e552a67b933d
Contact update + add dedication in About dialog
author | Goffi <goffi@goffi.org> |
---|---|
date | Sun, 29 May 2011 16:07:46 +0200 |
parents | d5266c41ca24 |
children | d0fa4e96a5e4 |
comparison
equal
deleted
inserted
replaced
56:5fa710058e2d | 57:e552a67b933d |
---|---|
150 | 150 |
151 def jsonrpc_delContact(self, entity): | 151 def jsonrpc_delContact(self, entity): |
152 """Remove contact from contacts list""" | 152 """Remove contact from contacts list""" |
153 profile = ISATSession(self.session).profile | 153 profile = ISATSession(self.session).profile |
154 self.sat_host.bridge.delContact(entity, profile) | 154 self.sat_host.bridge.delContact(entity, profile) |
155 | |
156 def jsonrpc_updateContact(self, entity, name, groups): | |
157 """Update contact's roster item""" | |
158 profile = ISATSession(self.session).profile | |
159 self.sat_host.bridge.updateContact(entity, name, groups, profile) | |
155 | 160 |
156 def jsonrpc_subscription(self, sub_type, entity, name, groups): | 161 def jsonrpc_subscription(self, sub_type, entity, name, groups): |
157 """Confirm (or infirm) subscription, | 162 """Confirm (or infirm) subscription, |
158 and setup user roster in case of subscription""" | 163 and setup user roster in case of subscription""" |
159 profile = ISATSession(self.session).profile | 164 profile = ISATSession(self.session).profile |