comparison src/plugins/plugin_xep_0054.py @ 437:02c633a0ddcf

plugin XEP-0115: entity capabilities now use PersistentBinaryDict to store hash cache
author Goffi <goffi@goffi.org>
date Wed, 30 Nov 2011 00:24:41 +0100
parents c243f4cb2ad9
children d67cae85c2f9
comparison
equal deleted inserted replaced
436:5e9d28ca5109 437:02c633a0ddcf
235 self.plugin_parent = plugin_parent 235 self.plugin_parent = plugin_parent
236 self.host = plugin_parent.host 236 self.host = plugin_parent.host
237 237
238 def connectionInitialized(self): 238 def connectionInitialized(self):
239 self.parent._vcard_cache = PersistentBinaryDict(NS_VCARD, self.parent.profile) 239 self.parent._vcard_cache = PersistentBinaryDict(NS_VCARD, self.parent.profile)
240 self.parent._vcard_cache.load()
240 self.xmlstream.addObserver(VCARD_UPDATE, self.update) 241 self.xmlstream.addObserver(VCARD_UPDATE, self.update)
241 242
242 def getDiscoInfo(self, requestor, target, nodeIdentifier=''): 243 def getDiscoInfo(self, requestor, target, nodeIdentifier=''):
243 return [disco.DiscoFeature(NS_VCARD)] 244 return [disco.DiscoFeature(NS_VCARD)]
244 245