Mercurial > libervia-web
comparison libervia.tac @ 124:6d1f4a3da29b
server: fixed buggy vcard cache retrieving, fixes avatar issue
author | Goffi <goffi@goffi.org> |
---|---|
date | Mon, 12 Dec 2011 22:26:55 +0100 |
parents | 5cb852d9757e |
children | f9d63624699f |
comparison
equal
deleted
inserted
replaced
123:5cb852d9757e | 124:6d1f4a3da29b |
---|---|
275 | 275 |
276 def jsonrpc_getCardCache(self, jid): | 276 def jsonrpc_getCardCache(self, jid): |
277 """Get the avatar of a contact | 277 """Get the avatar of a contact |
278 @param jid: jid of contact from who we want the avatar | 278 @param jid: jid of contact from who we want the avatar |
279 @return: path to the avatar image""" | 279 @return: path to the avatar image""" |
280 return self.sat_host.bridge.getCardCache(jid) | 280 profile = ISATSession(self.session).profile |
281 return self.sat_host.bridge.getCardCache(jid, profile) | |
281 | 282 |
282 class Register(jsonrpc.JSONRPC): | 283 class Register(jsonrpc.JSONRPC): |
283 """This class manage the registration procedure with SàT | 284 """This class manage the registration procedure with SàT |
284 It provide an api for the browser, check password and setup the web server""" | 285 It provide an api for the browser, check password and setup the web server""" |
285 | 286 |