Mercurial > libervia-web
diff libervia.tac @ 204:890776a6fdb7
browser + server: vcard is requested when no avatar data is found in cache
author | Goffi <goffi@goffi.org> |
---|---|
date | Thu, 20 Jun 2013 12:16:46 +0200 |
parents | 2bc6cf004e61 |
children | 7b26be266ab1 |
line wrap: on
line diff
--- a/libervia.tac Thu Jun 20 12:16:46 2013 +0200 +++ b/libervia.tac Thu Jun 20 12:16:46 2013 +0200 @@ -345,6 +345,13 @@ profile = ISATSession(self.session).profile return self.sat_host.bridge.getEntityData(jid, keys, profile) + def jsonrpc_getCard(self, jid): + """Get VCard for entiry + @param jid: jid of contact from who we want data + @return: id to retrieve the profile""" + profile = ISATSession(self.session).profile + return self.sat_host.bridge.getCard(jid, profile) + #def jsonrpc_getParamsUI(self): # """Return the parameters XMLUI for profile""" # profile = ISATSession(self.session).profile