Ouch, and thank you!  I could not find a single client that supported  
chat states to test with!  I'll see if I can get gajim running  
somewhere and test this out.  This one is a simple typo though.  You  
can either check out the latest SVN, download the SVN tarball off of  
www.blathersource.org, or go to line 317 of src/jabw.py and change  
chatState to chatStateEvent.  =)

Daniel

On Nov 28, 2005, at 4:16 AM, Arnaud Ab?lard wrote:

> i just installed pyaim-t 0.7.0a and i guess some erros i didn't  
> have with version 0.6.
>
> I'm using gajim 0.8.2 and it looks like pyaim-t 0.7.0 doesn't like  
> the chatstate status gajim is sending:
>
>
> <message to="[EMAIL PROTECTED]" type="chat"  
> id="1395"><active xmlns="http://jabber.org/protocol/chatstates"; /></ 
> message>
>
> <message xmlns='jabber:client' from='[EMAIL PROTECTED] 
> nantes.prive' id='1395' type='error' to='[EMAIL PROTECTED] 
> nantes.prive/Gajim'><error type='cancel' code='404'><remote-server- 
> not-found xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'/></ 
> error><active xmlns='http://jabber.org/protocol/chatstates'/></ 
> message>
>
> and the exception in the shell:
>
>  Traceback (most recent call last):
>   File "/usr/lib/python2.3/site-packages/twisted/internet/ 
> default.py", line 526, in doSelect
>     _logrun(selectable, _drdw, selectable, method, dict)
>   File "/usr/lib/python2.3/site-packages/twisted/python/log.py",  
> line 65, in callWithLogger
>     callWithContext({"system": lp}, func, *args, **kw)
>   File "/usr/lib/python2.3/site-packages/twisted/python/log.py",  
> line 52, in callWithContext
>     return context.call({ILogContext: newCtx}, func, *args, **kw)
>   File "/usr/lib/python2.3/site-packages/twisted/python/ 
> context.py", line 43, in callWithContext
>     return func(*args,**kw)
> --- <exception caught here> ---
>   File "/usr/lib/python2.3/site-packages/twisted/internet/ 
> default.py", line 535, in _doReadOrWrite
>     why = getattr(selectable, method)()
>   File "/usr/lib/python2.3/site-packages/twisted/internet/tcp.py",  
> line 255, in doRead
>     return self.protocol.dataReceived(data)
>   File "/usr/local/jabber/pyaim-t-svn/src/tlib/xmlstream.py", line  
> 159, in dataReceived
>     self.stream.parse(buf)
>   File "/usr/local/jabber/pyaim-t-svn/src/tlib/domish.py", line  
> 593, in parse
>     self.parser.Parse(buffer)
>   File "/usr/local/jabber/pyaim-t-svn/src/tlib/domish.py", line  
> 630, in _onEndElement
>     self.ElementEvent(self.currElem)
>   File "/usr/local/jabber/pyaim-t-svn/src/tlib/xmlstream.py", line  
> 180, in onElement
>     self.dispatch(element)
>   File "/usr/lib/python2.3/site-packages/twisted/xish/utility.py",  
> line 139, in dispatch
>     callbacklist.callback(object)
>   File "/usr/lib/python2.3/site-packages/twisted/xish/utility.py",  
> line 50, in callback
>     methodwrapper(*args, **kwargs)
>   File "/usr/lib/python2.3/site-packages/twisted/xish/utility.py",  
> line 34, in __call__
>     self.method(*nargs, **nkwargs)
>   File "main.py", line 297, in onMessage
>     self.sessions[froj.userhost()].onMessage(el)
>   File "/usr/local/jabber/pyaim-t-svn/src/jabw.py", line 317, in  
> onMessage
>     debug.log("User: %s - JabberConnection parsed chat state  
> notification \"%s\" \"%s\"" % (self.jabberID, toj.userhost(),  
> chatState))
> exceptions.NameError: global name 'chatState' is not defined
>
>
> _______________________________________________
> py-transports mailing list
> py-transports@blathersource.org
> http://www.modevia.com/cgi-bin/mailman/listinfo/py-transports
>
>

Reply via email to