[00:45:53] --- Maniac-z is now known as Maniac [02:17:12] --> azaad (~jxj@sv-fw.looksmart.com) has joined #peak [02:17:43] Hi all [03:06:17] hi [03:15:30] How goes? [03:31:14] fine [04:10:39] --- Maniac is now known as Maniac-yawa [08:09:25] * aloisius is back (gone 37:04:26) [09:24:38] --> jack-e (nobody@pD9EBE613.dip.t-dialin.net) has joined #peak [09:24:50] re [10:25:00] * jack-e is gone (12:25PM): .. autoaway .. [11:29:07] -so14k_- [GlobalNotice] Morning all, I'm going to do some quick rehubbing. [11:30:57] <-- jolby has quit (calvino.freenode.net irc.freenode.net) [11:30:57] <-- jack-e has quit (calvino.freenode.net irc.freenode.net) [11:30:57] <-- Maniac-yawa has quit (calvino.freenode.net irc.freenode.net) [11:30:57] <-- azaad has quit (calvino.freenode.net irc.freenode.net) [11:31:30] --> jack-e (nobody@pD9EBE613.dip.t-dialin.net) has joined #peak [11:31:30] --> azaad (~jxj@sv-fw.looksmart.com) has joined #peak [11:31:30] --> jolby (~jolby@12-230-14-63.client.attbi.com) has joined #peak [11:31:30] --> Maniac-yawa (~User@h24-77-230-121.wp.shawcable.net) has joined #peak [11:31:53] -so14k_- [GlobalNotice] Done, Thanks for using FN [14:04:29] --> Maniac (~daManiac@209-5-247-105.mb.skyweb.ca) has joined #peak [14:37:46] * Maniac notices jack-e has been updating his cvs :P [14:38:38] right :) .. [14:39:14] the unittests (those, that exist ..) run without errors again .. not too much tested yet though [14:39:42] * jack-e is trying to refactor acmgr to load configurations from ZConfig-files ... [14:43:43] so would the imap stuff we discussed the other day maybe work against peak cvs? [14:47:42] it should :-) [14:48:26] i refactored all the things that have been changed since my last update (e.g. adaptTo, s/provides/offerAs, ...) [14:49:15] i only tested imap-stuff against cyrus-imapd 2.x [14:57:37] ok, cool. I'll see if i can figure it out enough sometime today to test against UW imap [14:57:55] (i'm not a programmer by trade) [15:00:07] pje keeps really good CHANGES.txt (full of detail) [15:00:18] i think demo_imap.py is uptodate and should work .. to use it, just paste the parts you're interested in, into your python-interpreter .. or compose a small script from the examples (remember - our demo_XXX files won't do anything when you runthem [15:00:23] yes [15:02:04] sokay [15:03:51] --> _Maniac (~daManiac@209-5-247-105.mb.skyweb.ca) has joined #peak [15:03:51] <-- Maniac has quit (Read error: 54 (Connection reset by peer)) [15:05:21] <_Maniac> grr [16:01:01] * jack-e is gone (6:01PM): .. autoaway .. [16:21:54] <_Maniac> AttributeError: 'module' object has no attribute 'ParsedURL' [16:28:40] <_Maniac> i guess ParsedURL is depreciated [16:48:38] <_Maniac> from peak.api import * [16:48:38] <_Maniac> from nll.api import * [16:48:38] <_Maniac> from nll.app import makeRoot [16:48:38] <_Maniac> class myMailbox(net.mail.IMAPMailbox): [16:48:38] <_Maniac> connection = binding.bindTo('imap://jack:geib@localhost', [16:48:40] <_Maniac> adaptTo=net.mail.IIMAPConnection, [16:48:42] <_Maniac> offerAs=[net.mail.IIMAPConnection]) [16:48:46] <_Maniac> s = myMailbox(makeRoot()) [16:48:50] <_Maniac> storage.begin(s) [16:48:54] <_Maniac> i = s.INBOX [16:48:56] <_Maniac> msg = s.messageDM.newItem() [16:48:58] <_Maniac> msg.From = 'me@me.org' [16:49:02] <_Maniac> msg.To = 'me@me.org' [16:49:04] <_Maniac> msg.Subject = 'some testing' [16:49:06] <_Maniac> msg.addTextPart('some interesting text') [16:49:08] <_Maniac> i.addMessages(msg) [16:49:12] <_Maniac> storage.commit(s) [16:49:14] <_Maniac> [16:49:16] <_Maniac> [16:49:18] <_Maniac> unfortunately i get RuntimeError: maximum recursion depth exceeded [16:52:05] <_Maniac> File "C:\cygwin\home\pje\PEAK\src/peak/binding/_once.pyx", line 52, in _once.BaseDescriptor.__set__ [16:52:05] <_Maniac> File "/usr/local/lib/python2.2/site-packages/peak/binding/once.py", line 284, in onSet [16:52:05] <_Maniac> suggestParentComponent(obj, attrName, value) [16:52:05] <_Maniac> File "/usr/local/lib/python2.2/site-packages/peak/binding/once.py", line 94, in suggestParentComponent [16:52:05] <_Maniac> ob = adapt(child,IAttachable,None) [16:52:06] <_Maniac> File "C:\cygwin\home\pje\PyProtocols\src/protocols/_speedups.pyx", line 168, in _speedups.adapt [16:52:08] <_Maniac> File "C:\cygwin\home\pje\PyProtocols\src/protocols/_speedups.pyx", line 294, in _speedups.Protocol__adapt__ [16:52:10] <_Maniac> File "/usr/local/lib/python2.2/site-packages/nll/net/mail/imap.py", line 711, in [16:52:12] <_Maniac> lambda url, proto: IMAPConnection(address=url), [16:52:14] <_Maniac> File "/usr/local/lib/python2.2/site-packages/peak/binding/components.py", line 758, in __init__ [16:52:16] <_Maniac> setattr(self,k,v) [16:52:50] <_Maniac> [17:21:57] --- _Maniac is now known as Maniac [17:23:28] * aloisius is away: mangiare le scarpe [19:48:06] Maniac: still there ??? [19:48:26] sorry .. i was out of office for a few hours ... [19:48:59] i just checked in some fixes for nll (ParsedURL -> URL.Base) [20:23:27] heh, i already did that change, just don't understand why i'm getting infinite recursin [20:23:34] i was out too :P [20:23:43] ok [20:24:37] i'll try it here and see what happens .. [20:25:57] sokay [20:33:51] hmmmmm [20:44:26] do you get same thing? [20:46:12] yup .. [20:46:39] when you try to adapt(, net.mail.IIMAPConnection) the infinite recursion occurs. [20:47:04] this is configured in nll/src/nll/net/mail/imap.py at the very bottom (declareAdapter) ... [20:50:57] line 711 [20:51:31] yes [20:56:05] so, do you have a solution? :P [20:56:59] nope .. not yet .. i'm not sure if it is in my code or not .. [20:57:21] but i need to leave office soon .. i'll try to work on it 2morrow, but i cannot yet promise .. [20:57:39] that's fine [20:57:59] thanks for confirming it was not just me :) [20:58:07] :) [20:58:28] you can play around with the naming system a bit, this is a very interesting part of peak ... [21:11:21] the naming system is one of the reasons i want to use peak. but probably in a very rudimentary way [21:11:42] i like the idea of just saying "MyDB" and having hte connection info loaded from a config file [21:11:46] etc. [21:11:49] I'd love to use PEAK naming, but don't know where to start. [21:12:38] urls are used at many places to import stuff, reference to files, create connections. [21:13:20] i build urls for the interesting stuff, so that i can refer in a fairly simple and configurable manner to them e.g. like the imap-url [21:13:52] imap://:@:// [21:14:18] there is a parsing-framework that is driven by the specs (e.g. imapURL features + syntax ) [21:14:55] you need to register these urls that they can be found automatically in the peak.ini (or your custom ini file -> nll.app.makeRoot)) [21:15:38] then you can do binding. or naming.lookup(...) or self.lookupComponent with those urls .. or retrieve them from configfiles .. [21:16:32] for another good like background on naming check out this post from the mailing list: http://www.eby-sarna.com/pipermail/transwarp/2002-November/000208.html [21:19:17] bye .. i'm off back home [21:19:22] <-- jack-e has quit ("gone")