On 1/22/07, Jean Verger <[EMAIL PROTECTED]> wrote:
- Any reason for this behavior?
Not really, I haven't installed the Yahoo client, so I didn't know there was an Option B. Option A is easy to test because you can do everything via the web-site.
- I've been trying to modify the code. I thought that the key was in ylib.py: if pay[each][213] == '1': b = avatar.getavatar(pay[each][197], self.dumpProtocol) if b != None and self.handlers.has_key('avatar'): self.handlers['avatar'](self.fromjid,pay[each][7],b) Analyzing the packets, I noticed that avatars type B have pay[each][213] equals to 2. However, the surprising/frustrating/funny part of all this is that when I comment out any part of the code that makes a reference to the avatar, the avatar is still been displayed ...
I'm pretty sure Gajim caches the avatar, so you'd have to clear out the Gajim cache too to really notice that the avatar is gone. what happens if you alter:
if pay[each][213] == '1':
to:
if pay[each][213] == '1' or pay[each][213] == '2':
?
Any hint on how Yahoo Transport is dealing with avatars? Any document/experience?
no docs, best thing to do is make sure dumpProtocol is enabled, then you can see the raw data. At the moment what happens is that the yahoo server send a hash of the image data, which is then fetched via http from the yahoo image server. If the Option B images are stored on the same server then adding the above code should make things 'just work'. If there's a different url for those images then something like ethereal is useful to sniff it out. If you get it working, please post the patch so that I can apply it :-) -- - Norman Rasmussen - Email: [EMAIL PROTECTED] - Home page: http://norman.rasmussen.co.za/ _______________________________________________ py-transports mailing list py-transports@blathersource.org http://www.modevia.com/cgi-bin/mailman/listinfo/py-transports