Scott Dial <scott+py-transports <at> scottdial.com> writes:
> Hadar Pedhazur wrote:
>> One (hopefully) last message. Can/should I apply the identical changes
>> to the pyicq transport?
>
> That I don't know. I believe so, but I've not tested this as thoroughly.
> I'm not sure how much the protocol diverges between the two, but I
> believe it works the same in this respect.
>
> I forgot the ICQ was backed by the same library.. I learned today that I
> could login via UIN to my airaim.com client and get a ICQ session.
> Reading profiles and away messages appeared to work just fine for me.
OK, the same patches don't work for the ICQ transport (meaning, they patch
correctly, since the code in oscar.py and scheduler.py is/was identical,
but it doesn't "work"). I reverted...
Here is the error message that occurs when my buddy goes into away mode in
ICQ after the patch is applied. I formatted it to fit better in the posting,
including trimming the leading directories for the python libraries...
Unhandled error in Deferred:
Traceback (most recent call last):
File "../pyicq-t-0.8/src/tlib/oscar.py",
line 645, in dataReceived
state=func(flap)
File "../pyicq-t-0.8/src/tlib/oscar.py",
line 754, in oscar_Data
d.callback(snac)
File
"../site-packages/twisted/internet/defer.py",
line 239, in callback self._startRunCallbacks(result)
File
"../site-packages/twisted/internet/defer.py",
line 304, in _startRunCallbacks
self._runCallbacks()
--- <exception caught here> ---
File
"../site-packages/twisted/internet/defer.py",
line 317, in _runCallbacks
self.result = callback(self.result, *args, **kw)
File "../pyicq-t-0.8/src/legacy/icqt.py",
line 330, in sendAwayPresence
LogEvent(INFO, self.session.jabberID, "Away (%s, %s)
message %s" % (charset, msg[0], status))
exceptions.UnicodeDecodeError: 'utf8' codec can't decode
byte 0x89 in position 20: unexpected code byte
Unhandled error in Deferred:
Traceback (most recent call last):
File "../pyicq-t-0.8/src/tlib/oscar.py",
line 645, in dataReceived
state=func(flap)
File "../pyicq-t-0.8/src/tlib/oscar.py",
line 754, in oscar_Data
d.callback(snac)
File
"../site-packages/twisted/internet/defer.py",
line 239, in callback
self._startRunCallbacks(result)
File
"../site-packages/twisted/internet/defer.py",
line 304, in _startRunCallbacks
self._runCallbacks()
--- <exception caught here> ---
File
"../site-packages/twisted/internet/defer.py",
line 317, in _runCallbacks
self.result = callback(self.result, *args, **kw)
File "../pyicq-t-0.8/src/legacy/icqt.py",
line 330, in sendAwayPresence
LogEvent(INFO, self.session.jabberID, "Away (%s, %s)
message %s" % (charset, msg[0], status))
exceptions.UnicodeDecodeError: 'utf8' codec can't decode
byte 0x89 in position 20: unexpected code byte
_______________________________________________
py-transports mailing list
[email protected]
http://lists.modevia.com/cgi-bin/mailman/listinfo/py-transports