On l?r, 2005-12-10 at 23:08 -0500, Daniel Henninger wrote: > Ok folk, > > I've run into an issue here. In a previous version, someone was kind > enough to work out the logistics of looking up information about a > user and jam that in a vcard. So if I'm logged into PyICQ, I can > look up vcard information about my test account. Well, here's the > thing. Now there's avatars. This means the client will do a vcard > request in order to retrieve the avatar. Well, that means I'm also > asking for the directory type information when said avatar is > requested. (same occurs with PyAIM as well actually, it's just less > involved . . . AIM only has the Profile) So basically, asking for an > avatar via vcard is an 'expensive' operation. I don't know what to > do about this. I -could- cache the information received from the > extended lookup, so at least i doesn't occur often. Of course, this > means the info won't be up to date. Anyway, do any of you have any > suggestions? Or do you think this is piddly enough of an 'expense' > to not worry with it. It's typically a quick response, for what it's > worth. As far as I know, there's no indication during a vcard-based > avatar request that you are only really looking for the photo field. > > Daniel >
How about jep-0008? It is historical but so is vcard-temp based avatars. Though not many clients seem to support it, why is that? It doesn't seem that difficult to implement. /Jonas -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://modevia.com/pipermail/py-transports/attachments/20051211/71a73a74/attachment.pgp From [EMAIL PROTECTED] Sun Dec 11 14:29:33 2005 From: [EMAIL PROTECTED] (Norman Rasmussen) Date: Sun Dec 11 14:29:37 2005 Subject: [py-transports] pyictq jabberd2 bugs Message-ID: <[EMAIL PROTECTED]> Daniel: I'm seeing this with the AIM and ICQ transports, just you've made it so that I can't break the AIM transport on demand (using the search), but basically: - Something 'breaks' duirng processing, and a traceback is delivered. - The component disconnects from the server, and tries to reconnect - The component reconnects, using the jabberd-component protocol, - But never responds to the feature stanza, i.e. never starts sasl authentication. so it's half connected, and totally unusable. This is happening with the AIM and ICQ transports. with the ICQ transport I can connect userA (dns might fail), and try and search with userB, which causes this traceback: (as you can see after the traceback the conection is zapped, and restarted, by nothing happens after that) 2005/12/11 16:20 SAST [SASLXmlStream,client] Traceback (most recent call last): File "/usr/lib/python2.3/site-packages/twisted/python/log.py", line 56, in callWithLogger return callWithContext({"system": lp}, func, *args, **kw) File "/usr/lib/python2.3/site-packages/twisted/python/log.py", line 41, in callWithContext return context.call({ILogContext: newCtx}, func, *args, **kw) File "/usr/lib/python2.3/site-packages/twisted/python/context.py", line 52, in callWithContext return self.currentContext().callWithContext(ctx, func, *args, **kw) File "/usr/lib/python2.3/site-packages/twisted/python/context.py", line 31, in callWithContext return func(*args,**kw) --- <exception caught here> --- File "/usr/lib/python2.3/site-packages/twisted/internet/selectreactor.py", line 139, in _doReadOrWrite why = getattr(selectable, method)() File "/usr/lib/python2.3/site-packages/twisted/internet/tcp.py", line 351, in doRead return self.protocol.dataReceived(data) File "/usr/lib/python2.3/site-packages/twisted/xish/xmlstream.py", line 145, in dataReceived self.stream.parse(buf) File "/usr/lib/python2.3/site-packages/twisted/xish/domish.py", line 600, in parse self.parser.Parse(buffer) File "/usr/lib/python2.3/site-packages/twisted/xish/domish.py", line 638, in _onEndElement self.ElementEvent(self.currElem) File "/usr/lib/python2.3/site-packages/twisted/xish/xmlstream.py", line 166, in onElement self.dispatch(element) File "/usr/lib/python2.3/site-packages/twisted/xish/utility.py", line 233, in dispatch callbacklist.callback(object) File "/usr/lib/python2.3/site-packages/twisted/xish/utility.py", line 37, in callback methodwrapper(*args, **kwargs) File "/usr/lib/python2.3/site-packages/twisted/xish/utility.py", line 21, in __call__ self.method(*nargs, **nkwargs) File "main.py", line 291, in onRouteMessage self.discovery.onIq(child) File "/home/norman/src/svn/PyICQt/src/disco.py", line 133, in onIq handler(el) File "/home/norman/src/svn/PyICQt/src/misciq.py", line 585, in incomingIq self.processSearch(el) File "/home/norman/src/svn/PyICQt/src/misciq.py", line 669, in processSearch self.pytrans.legacycon.doSearch(dataform, iq).addCallback(self.gotSearchResponse) exceptions.AttributeError: 'NoneType' object has no attribute 'addCallback' [2005-12-11 16:21:02] PyTransport: Disconnected from main Jabberd server 2005/12/11 16:21 SAST [SASLXmlStream,client] <twisted.internet.tcp.Connector instance at 0xb777f38c> will retry in 2 seconds 2005/12/11 16:21 SAST [SASLXmlStream,client] Stopping factory <sasl.SASLXmlStreamFactory instance at 0xb779a94c> 2005/12/11 16:21 SAST [-] Starting factory <sasl.SASLXmlStreamFactory instance at 0xb779a94c> [2005-12-11 16:21:29] Sessions: [2005-12-11 16:21:29] [EMAIL PROTECTED] [2005-12-11 16:21:29] Psi [2005-12-11 16:22:29] Sessions: [2005-12-11 16:22:29] [EMAIL PROTECTED] [2005-12-11 16:22:29] Psi [2005-12-11 16:23:29] Sessions: [2005-12-11 16:23:30] [EMAIL PROTECTED] [2005-12-11 16:23:30] Psi 2005/12/11 16:23 SAST [-] Received SIGINT, shutting down. [2005-12-11 16:23:46] PyTransport: Service shutting down [2005-12-11 16:23:46] Session: Removing "[EMAIL PROTECTED]" [2005-12-11 16:23:46] User: [EMAIL PROTECTED] - JabberConnection sending presence "[EMAIL PROTECTED]""icq.jabber.localhost" "None" "None" "None" "unavailable" "False" "None" [2005-12-11 16:23:46] LegacyConnection: removeMe [2005-12-11 16:23:46] ICQConnection: removeMe [2005-12-11 16:23:46] ContactList: "[EMAIL PROTECTED]" removed [2005-12-11 16:23:46] Session: Completed removal "[EMAIL PROTECTED]" [2005-12-11 16:23:50] PyTransport: Disconnected from main Jabberd server 2005/12/11 16:23 SAST [SASLXmlStream,client] <twisted.internet.tcp.Connector instance at 0xb777f38c> will retry in 2 seconds 2005/12/11 16:23 SAST [SASLXmlStream,client] Stopping factory <sasl.SASLXmlStreamFactory instance at 0xb779a94c> 2005/12/11 16:23 SAST [-] Main loop terminated. -- - Norman Rasmussen - Email: [EMAIL PROTECTED] - Home page: http://norman.rasmussen.co.za/ From [EMAIL PROTECTED] Sun Dec 11 17:03:27 2005 From: [EMAIL PROTECTED] (Eric Langheinrich) Date: Sun Dec 11 17:03:35 2005 Subject: [py-transports] Help with PyMSNt In-Reply-To: <[EMAIL PROTECTED]> Message-ID: <[EMAIL PROTECTED]> > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:py-transports- > [EMAIL PROTECTED] On Behalf Of James Bunton > Sent: Saturday, December 10, 2005 3:02 PM > To: PyAIM-t/PyICQ-t/PyMSN-t Discussion > Subject: Re: [py-transports] Help with PyMSNt > > I think this was because of the version of Twisted you were using. > > Are you using Twisted 2.1.x or Twisted Words 0.3? I'm currently running: Twisted 2.0.0a2 Twisted Conch 0.5.0a2 Twisted Flow 0.1.0a2 Twisted Lore 0.1.0a2 Twisted Mail 0.1.0a2 Twisted Names 0.1.0a2 Twisted News 0.1.0a2 Twisted Pair 0.1.0a2 Twisted Runner 0.1.0a2 Twisted Web 0.5.0a2 Twisted Words 0.1.0a2 Twisted Xish 0.1.0a2 With Python: Python 2.4.2 > > PyMSNt 0.10.2 doesn't support those yet. I'll put out a new release > soon. I'm assuming from what you've written above, that PyMSNt 0.10.2 should run fine with this setup. I am able to run PyAIMt and PyICQt just fine. Is my best option to run the latest from SVN or is there something I can do to figure out why the config above isn't running for me?