re: http://www.darkskies.za.net/~norman/jabber/pyaimt-jabberd2-v1.patch

I got JD2 components for pyaimt working.  I had to add a jabberd2 user
called 'aim.jabber.darkskies.za.net' and give it the same password as
my legacy user.  It would be nice if the sasl username was separately
configurable from the transport name.

I also fixed the routing to use the domain name of the destination
JID.  I have found this works very well with the yahoo transport. 
(note that: 'to' could be None, but I think if that happens, then
there's something else wrong elsewhere)

Also I tried to tweak the disco items so that the chat host is 'under'
the main host.  The way disco is written atm, this makes the hash
pretty ugly.  This is probably not the best way to do it. 
Additionally I have found that if you return no info when disco'ed is
from your main host (i.e. disco chatrooms.aim.jabber.darkskies.za.net
from darkskies.za.net)  then jabberd2 will not include the chatrooms
in your disco results.  I didn't find an easy way to hook this into
the existing disco structure.  (The addNode wants to call it's own
function which would only call discovery.onIq if the requestor is not
the server's jid).

Additionally I found a bug that kicks the transport off the server: 
Try and search when you're not logged in.

Would it be possible to change it so that an exception doesn't boot
the entire component off the server when something goes wrong?  (or
get auto-reconnect working?)

--
- Norman Rasmussen
 - Email: [EMAIL PROTECTED]
 - Home page: http://norman.rasmussen.co.za/
From [EMAIL PROTECTED]  Mon Nov 28 09:16:45 2005
From: [EMAIL PROTECTED] (=?ISO-8859-1?Q?Arnaud_Ab=E9lard?=)
Date: Mon Nov 28 09:16:56 2005
Subject: [py-transports] pyaim-t 0.7.0a exception
Message-ID: <[EMAIL PROTECTED]>

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]' id='1395' type='error' 
to='[EMAIL PROTECTED]/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

Reply via email to