Module disco :: Class ServicesCache
[hide private]
[frames] | no frames]

Class ServicesCache

source code

Class that caches our query results. Each connection will have it's own ServiceCache instance
Instance Methods [hide private]
 
__init__(self, account) source code
 
__del__(self) source code
 
cleanup(self) source code
 
_clean_closure(self, cb, type_, addr) source code
 
get_icon(self, identities=[])
Return the icon for an agent
source code
 
get_browser(self, identities=[], features=[])
Return the browser class for an agent
source code
 
get_info(self, jid, node, cb, force=False, nofetch=False, args=())
Get info for an agent
source code
 
get_items(self, jid, node, cb, force=False, nofetch=False, args=())
Get a list of items in an agent
source code
 
agent_info(self, account, array)
Callback for when we receive an agent's info array is (agent, node, identities, features, data)
source code
 
agent_items(self, account, array)
Callback for when we receive an agent's items array is (agent, node, items)
source code
 
agent_info_error(self, account, jid)
Callback for when a query fails.
source code
 
agent_items_error(self, account, jid)
Callback for when a query fails.
source code
Method Details [hide private]

__init__(self, account)
(Constructor)

source code 

__del__(self)
(Destructor)

source code 

cleanup(self)

source code 

_clean_closure(self, cb, type_, addr)

source code 

get_icon(self, identities=[])

source code 
Return the icon for an agent

get_browser(self, identities=[], features=[])

source code 
Return the browser class for an agent

get_info(self, jid, node, cb, force=False, nofetch=False, args=())

source code 
Get info for an agent

get_items(self, jid, node, cb, force=False, nofetch=False, args=())

source code 
Get a list of items in an agent

agent_info(self, account, array)

source code 
Callback for when we receive an agent's info array is (agent, node, identities, features, data)

agent_items(self, account, array)

source code 
Callback for when we receive an agent's items array is (agent, node, items)

agent_info_error(self, account, jid)

source code 
Callback for when a query fails. Even after the browse and agents namespaces

agent_items_error(self, account, jid)

source code 
Callback for when a query fails. Even after the browse and agents namespaces