On 03/01/2006, at 9:27 AM, Lars T. Mikkelsen wrote:

> On Mon, Jan 02, 2006 at 03:20:01PM +0200, Norman Rasmussen wrote:
>> it still doesn't like me:
>>
>> 2006/01/02 15:17 SAST [XmlStream,client] INFO ::
>> (u'[EMAIL PROTECTED]/Psi-Home', '[EMAIL PROTECTED]')
>> :: [Failure instance: Traceback: exceptions.TypeError: discoFail()
>> takes exactly 1 argument (2 given)
>>     
>> /usr/lib/python2.3/site-packages/twisted/xish/utility.py:21:__call__
>>    /home/norman/src/svn/PyMSNt.trunk/src/disco.py:121:onIq
>>     
>> /usr/lib/python2.3/site-packages/twisted/internet/defer.py:254: 
>> callback
>>     
>> /usr/lib/python2.3/site-packages/twisted/internet/defer.py:315: 
>> _startRunCallbacks
>>    --- <exception caught here> ---
>>     
>> /usr/lib/python2.3/site-packages/twisted/internet/defer.py:328: 
>> _runCallbacks
>>    ] :: discoFail :: FTReceive :: {'self': 'instance', 'err':
>> <twisted.python.failure.Failure exceptions.TypeError>}
>
> I was also getting these exceptions. Apparently they occur because
> Twisted Xish 0.1 doesn't have the Element.getElement() function, which
> is used in DiscoRequest.discoResponse().
>
> To get iChat to accept the file transfer offers, I also had to rename
> the "profile" attribute of the file element to "xmlns". This change
> looks correct according to JEP-0096.
>
> The attached patch fixes both these issues. While file transfers work
> (both OOB and S5B) I'm getting a lot of these warnings in debug.log:
>
> 2006/01/02 22:52 CET [OneSwitchboardSession,client] wait_data
> 2006/01/02 22:52 CET [OneSwitchboardSession,client] Unpacked fields:  
> 0x3840E30L 0x3840E34L 0x1231CL 0x4320DL 0x4B2L 0x1000030L 0x3B6D4D3L  
> 0x0L 0x0L 0x2L
> 2006/01/02 22:52 CET [OneSwitchboardSession,client] Warning in  
> transfer: <tlib.msn.msn.SLPLink_FileReceive instance at 0xb758d18c>  
> field9,2
>
> This is with Microsoft Messenger for Mac 5.0.0 sending the file.
>
> Best regards,
> Lars

Thanks for those two patches.

Now fixed in SVN :)

---

James

Reply via email to