comparison 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
comparison
equal deleted inserted replaced
203:5fdea93b2541 204:890776a6fdb7
342 @param jid: jid of contact from who we want data 342 @param jid: jid of contact from who we want data
343 @param keys: name of data we want (list) 343 @param keys: name of data we want (list)
344 @return: requested data""" 344 @return: requested data"""
345 profile = ISATSession(self.session).profile 345 profile = ISATSession(self.session).profile
346 return self.sat_host.bridge.getEntityData(jid, keys, profile) 346 return self.sat_host.bridge.getEntityData(jid, keys, profile)
347
348 def jsonrpc_getCard(self, jid):
349 """Get VCard for entiry
350 @param jid: jid of contact from who we want data
351 @return: id to retrieve the profile"""
352 profile = ISATSession(self.session).profile
353 return self.sat_host.bridge.getCard(jid, profile)
347 354
348 #def jsonrpc_getParamsUI(self): 355 #def jsonrpc_getParamsUI(self):
349 # """Return the parameters XMLUI for profile""" 356 # """Return the parameters XMLUI for profile"""
350 # profile = ISATSession(self.session).profile 357 # profile = ISATSession(self.session).profile
351 # d = defer.Deferred() 358 # d = defer.Deferred()