It seems those who do not have an avatar setup I'm getting a blank avatar. Attached is the example file that pyMSN puts in it's cache. This avatar gets sent to the client as this.
<PHOTO><TYPE>image/png</TYPE><BINVAL>iVBORwo= </BINVAL><SHA>57d12019b31b56322c12a2c5391b4a9c2c6c919a</SHA></PHOTO> Unfortunately Pandion gets this data and just display's a red X. I modified the pyMSN source to not send the avatar if the hash = 57d12019b31b56322c12a2c5391b4a9c2c6c919a. Here is what I put. def makePhotoElement(self): """ Returns an XML Element that can be put into the vCard. """ photo = Element((None, "PHOTO")) if self.getImageHash() != "57d12019b31b56322c12a2c5391b4a9c2c6c919a": type = photo.addElement("TYPE") type.addContent("image/png") binval = photo.addElement("BINVAL") binval.addContent(base64.encodestring(self.getImageData())) return photo This might not be the best place for it so I welcome your comments. Also is there a way to get this type of functionality added to the main source tree so it's in the next release? Nathan Palmer [EMAIL PROTECTED] -------------- next part -------------- A non-text attachment was scrubbed... Name: 57d12019b31b56322c12a2c5391b4a9c2c6c919a Type: application/octet-stream Size: 5 bytes Desc: 57d12019b31b56322c12a2c5391b4a9c2c6c919a Url : http://modevia.com/pipermail/py-transports/attachments/20060113/8a7c6fc6/57d12019b31b56322c12a2c5391b4a9c2c6c919a.obj From [EMAIL PROTECTED] Fri Jan 13 19:49:27 2006 From: [EMAIL PROTECTED] (Lars T. Mikkelsen) Date: Fri Jan 13 19:49:43 2006 Subject: [py-transports] MSN Blank Avatars and Pandion In-Reply-To: <[EMAIL PROTECTED]> References: <[EMAIL PROTECTED]> Message-ID: <[EMAIL PROTECTED]> On Fri, Jan 13, 2006 at 12:06:16PM -0700, Nathan Palmer wrote: > This might not be the best place for it so I welcome your comments. > Also is there a way to get this type of functionality added to the main > source tree so it's in the next release? I think this is still an issue with opening binary files on Windows. If a MSN contact hasn't set an avatar, the transport will set a default one [1]. Please try changing the following in src/legacy/legacylist.py: f = open("src/legacy/defaultAvatar.png") to f = open("src/legacy/defaultAvatar.png", "rb") Furthermore, I guess you should change the following in src/legacy/glue.py: f = open("src/legacy/defaultJabberAvatar.png") to f = open("src/legacy/defaultJabberAvatar.png", "rb") Best regards, Lars [1] http://websvn.delx.cjb.net/websvn/filedetails.php?repname=pymsnt&path=%2Ftags%2FRELEASE_0_10_3%2Fsrc%2Flegacy%2FdefaultAvatar.png&rev=0&sc=0 From [EMAIL PROTECTED] Fri Jan 13 20:52:51 2006 From: [EMAIL PROTECTED] (Nathan Palmer) Date: Fri Jan 13 20:52:56 2006 Subject: [py-transports] MSN Blank Avatars and Pandion Message-ID: <[EMAIL PROTECTED]> Ok. I changed that. Now I'm getting something for everyone. No more red X's in Pandion and in Gajim no blanks. Thanks, Nathan Palmer [EMAIL PROTECTED] -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Lars T. Mikkelsen Sent: Friday, January 13, 2006 12:49 PM To: py-transports@blathersource.org Subject: Re: [py-transports] MSN Blank Avatars and Pandion On Fri, Jan 13, 2006 at 12:06:16PM -0700, Nathan Palmer wrote: > This might not be the best place for it so I welcome your comments. > Also is there a way to get this type of functionality added to the main > source tree so it's in the next release? I think this is still an issue with opening binary files on Windows. If a MSN contact hasn't set an avatar, the transport will set a default one [1]. Please try changing the following in src/legacy/legacylist.py: f = open("src/legacy/defaultAvatar.png") to f = open("src/legacy/defaultAvatar.png", "rb") Furthermore, I guess you should change the following in src/legacy/glue.py: f = open("src/legacy/defaultJabberAvatar.png") to f = open("src/legacy/defaultJabberAvatar.png", "rb") Best regards, Lars [1] http://websvn.delx.cjb.net/websvn/filedetails.php?repname=pymsnt&path=%2 Ftags%2FRELEASE_0_10_3%2Fsrc%2Flegacy%2FdefaultAvatar.png&rev=0&sc=0 _______________________________________________ py-transports mailing list py-transports@blathersource.org http://www.modevia.com/cgi-bin/mailman/listinfo/py-transports From [EMAIL PROTECTED] Fri Jan 13 22:31:49 2006 From: [EMAIL PROTECTED] (Eric Langheinrich) Date: Fri Jan 13 22:32:03 2006 Subject: [py-transports] More MSN wierdness Message-ID: <[EMAIL PROTECTED]> After a bit more testing, I've found that anytime I sign into MSN through Jabber and the PyMSNt transport, my MSN privacy settings are getting reset. Namely, the "Other .NET Messages" is being moved to the block list. Repeatedly, I have seen this behavior when I sign into MSN through Jabber. Is there a way to keep this from happening?