Package common :: Module caps_cache :: Class CapsCache
[hide private]
[frames] | no frames]

Class CapsCache

source code


This object keeps the mapping between caps data and real disco features they represent, and provides simple way to query that info
Instance Methods [hide private]
 
__init__(self, logger=None)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
initialize_from_db(self) source code
 
_remove_outdated_caps(self)
Remove outdated values from the db
source code
 
__getitem__(self, caps) source code
 
query_client_of_jid_if_unknown(self, connection, jid, client_caps)
Start a disco query to determine caps (node, ver, exts).
source code

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, logger=None)
(Constructor)

source code 
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
Overrides: object.__init__
(inherited documentation)

initialize_from_db(self)

source code 

_remove_outdated_caps(self)

source code 
Remove outdated values from the db

__getitem__(self, caps)
(Indexing operator)

source code 

query_client_of_jid_if_unknown(self, connection, jid, client_caps)

source code 
Start a disco query to determine caps (node, ver, exts). Won't query if the data is already in cache