comparison src/plugins/plugin_xep_0054.py @ 1199:96fb74a4714d

misc: fixed some typos
author Matteo Cypriani <mcy@lm7.fr>
date Mon, 15 Sep 2014 14:18:25 +0200
parents 5d89fecdf667
children 8b891f9be183
comparison
equal deleted inserted replaced
1198:16ce9a6580a3 1199:96fb74a4714d
267 return (vcard_set, img_hash) 267 return (vcard_set, img_hash)
268 268
269 def setAvatar(self, filepath, profile_key=C.PROF_KEY_NONE): 269 def setAvatar(self, filepath, profile_key=C.PROF_KEY_NONE):
270 """Set avatar of the profile 270 """Set avatar of the profile
271 @param filepath: path of the image of the avatar""" 271 @param filepath: path of the image of the avatar"""
272 #TODO: This is a temporary way of setting avatar, as other VCard informations are not managed. 272 #TODO: This is a temporary way of setting the avatar, as other VCard information is not managed.
273 # A proper full VCard management should be done (and more generaly a public/private profile) 273 # A proper full VCard management should be done (and more generaly a public/private profile)
274 client = self.host.getClient(profile_key) 274 client = self.host.getClient(profile_key)
275 275
276 vcard_set = IQ(client.xmlstream, 'set') 276 vcard_set = IQ(client.xmlstream, 'set')
277 d = threads.deferToThread(self._buildSetAvatar, vcard_set, filepath) 277 d = threads.deferToThread(self._buildSetAvatar, vcard_set, filepath)