[00:32:44] ** hazmat has joined us [00:50:02] <_jpl_> I know have some of the Junction example working with peak.events, but it's not quite right yet. [01:05:55] <_jpl_> Now it's working. :) [01:06:52] <_jpl_> Client.doWork() is now a peak.events thread, and as pje suggested Server is an EventDriven subclass with a single property (myService). [01:09:24] * _jpl_ goes home [07:51:30] ** vlado_ has joined us [09:47:15] ** hazmat has joined us [09:52:54] ** charlie has joined us [09:53:18] Hi, anyone could give me a bit of help? [10:01:31] Anyone out there? [10:27:34] Hi, anyone could give me a bit of help? [10:41:26] you can ask, i dunno that i can help [10:48:07] I'm quite new to PEAK and just trying some of the smaller examples but even the simplest constructions fail [10:48:24] things like w = binding.Make(...) [10:48:52] I get this: [10:48:54] AttributeError: 'LazyModule' object has no attribute 'Make' [10:49:09] seems like binding has nothing like 'Make' [10:51:41] ** gpciceri has joined us [10:52:57] hi gpciceri [10:53:18] hello [10:53:26] are you a PEAK user? [10:53:42] a beginner one [10:53:53] me too [10:54:05] i just get error messages [10:54:32] I've only reviewed some samples [10:54:50] even the simplest sample does not work for me [10:55:01] like this one: [10:55:17] from peak.api import binding [10:55:20] class Car: [10:55:29] passengers = binding.Make(dict, attrName = 'passengers') [10:55:38] i get this error message: [10:55:45] AttributeError: 'LazyModule' object has no attribute 'Make' [10:56:05] have you any idea what's wrong? [10:56:06] Car hinherit from binding ? [10:56:17] inherit ? [10:56:21] let me check [10:56:21] no, it does not [10:57:13] well, I take no error, which PEAK release are you using ? [10:57:40] ** charlie1 has joined us [10:57:47] just a sec [10:58:28] just downloaded and installed PEAK-0.5a2.win32-py2.2.exe [10:59:15] I've done a cvs checkout yest. [10:59:30] are you on Windows? [10:59:43] and I'm using python 2.3.3 on linux [11:00:33] hmm, PEAK did not install with Python 2.3 so I had to remove it and install 2.2 [11:00:56] do an install from sources [11:01:32] do you suggest trying it with Python 2.3? [11:02:35] well, if it is not a big issue for you... [11:03:00] ok, gonna try this thanks for the advice [11:03:07] have you an DSL [11:03:08] ? [11:03:30] i do [11:04:07] try with activestate (for windoze) [11:05:13] you mean the activestate version of Python? [11:05:36] when I used win, I've installed AS [11:14:16] i use peak with python2.3 (gentoo linux) [11:14:29] Maniac, hello [11:14:54] it may be the tutorial is woefully out of date [11:15:06] gpciceri, hello [11:15:21] i've thought of that, Maniac [11:15:35] no better tutorial seems to exist [11:15:51] check the wiki for up-to-date examples [11:16:10] do you think that there exists no binding.Make anymore? [11:16:57] it works for gpciceri [11:16:57] no, the sample you've given to me works [11:19:21] no,no binding.Make defineately is current [11:19:37] if you do: w = binding.Make(something) [11:19:45] er [11:20:23] then gpciceri must have an older installation [11:20:28] no [11:20:36] which example? [11:21:03] oh, the version you have is older [11:21:07] binding.Make is new API [11:21:15] it used to be binding.Once or something [11:21:26] just downloaded the newest version [11:21:38] i think it is the newest [11:21:46] a win32 [11:22:15] ok alpha 3 is unreleased [11:23:13] what do you think i should do then [11:25:27] if you want any of the examples to work from the wiki you have to d/l cvs i guess [11:25:37] http://peak.telecommunity.com/Meta/SourceandBinaryReleases.html [11:25:51] there's a link there for latest cvs as a tar.g [11:25:53] er tar.gz [11:26:06] you can unpack that in windows and install via distutils: [11:26:10] python setup.py install [11:26:18] ok, gonna give it a try [11:26:28] cvs is generally very stable [11:26:42] charlie1, I confirm I'm using py 2.3.3 and CVS PEAK [11:27:10] i've got to go thanks to you gpciceri and Maniac see you later [11:28:34] cheers [11:28:42] gpciceri, any supybot work lately? [11:28:58] :) [11:33:02] Maniac, you're joking with me [11:33:04] :-9 [11:33:06] :-) [11:33:33] yes [11:33:41] I'm still thinking if it's better build a jabber bot that uses supybot plugind [11:33:51] plugin [11:34:24] I really like to reuse your bot framework [11:34:31] the twisted+peak one [11:34:39] I mean [11:35:24] to run some of supybot plugins [11:36:30] but I'm not too confident that make sense let the supybot run over jabber transport, there are too many IRC-specific issues. [11:36:43] any idea aout this ? [11:36:46] about [11:53:19] i have the same issues [11:53:37] i looked at the plugin code and couldn't wrap my head around re-using their plugins for my bot [11:54:22] in theory my bot can talk IRC if i make a network adapter for it but that has never been tested [11:55:22] o.k., you make an adapter to "convert" jabber instruction to IIRC one [11:55:26] and right now my bot is not "group" aware [11:55:29] sould make [11:56:03] all i'm doing is doing: self.transport.sendMsg(to='someone', msg = 'somemsg) [11:56:28] with the idea that 'transport' could be plugable [11:57:42] i was thinking of a way to load supybot plugins but they all 'assume' irc as far as i can tell [11:58:02] the problem with supybot plugins is that they use an irc object that do the network conversation [11:58:06] exactly [11:58:17] this is not seen as a pluggable service [11:58:21] no [11:58:31] like in a peak approach [11:58:55] so what i was thinking is that i *could* plugin MSN, yahoo or whatever via a 'transport' [11:59:04] but again, never tested :) [11:59:28] plus i can just use jabber -> msn transports on the jabber server [11:59:32] msn-t [11:59:37] * Maniac has to work [11:59:37] yes [11:59:51] or wait for a jabber -> irc transport server side [12:00:06] and then having to write all my own plugins (which i was hoping to 'borrow') [12:02:12] the gaim approach (the client has the translator) seems more flexible, but one of the most powerful ideas under jabber is that is the server that performs the multi-IM networks transaltions [13:21:29] * _jpl_ waves [14:49:31] * Maniac waves backly [17:01:37] * _jpl_ waves frontly [17:17:12] * Maniac dances around _jpl_ as he waves [18:01:35] * _jpl_ swats [18:03:34] <_jpl_> I wish Cheetah weren't so tightly coupled with Webware. It works fine without it, but it comes with lots of extra (code) baggage if you're using it on its own. If I had time I'd take the core of Cheetah and redo it with PEAK. [20:15:39] ** _jpl_ has left us [21:22:06] ** pje has joined us [21:22:11] * pje waves [21:22:38] I just popped in to leave a note for JPL, enquiring what he likes about Cheetah that can't be done with p.w.t... :) [21:24:58] * pje waves again [21:25:04] ** pje has left us [21:52:40] ** _jpl_ has joined us [22:24:10] er, python web templates ? [22:25:41] ** _jpl_ has joined us [23:22:59] ** _jpl_ has joined us [23:27:36] zope page templates are the shizkit [23:47:04] <_jpl_> Uh