[00:00:27] A few days ago. I figured out why he thought it was broken, and why it actually works. [00:02:31] If you want to read about it, see the paragraphs at the end of section 5 of chapter 4. [00:03:19] The fourth and fifth to last paragraph, to be exact. [00:17:00] 1 def _load(self, oid, ob): [00:17:01] 2 row = ~self.customerdb("select GRP from custgroups where NAME='%s'" % [00:17:04] 3 oid) [00:17:06] 4 m = self.data[row.GRP] % oid [00:17:09] 5 return {'forname': oid, 'text': msg} [00:17:12] dont' you want : [00:17:30] Heh, how did that 'msg' get in there. [00:17:48] :) [00:18:20] Oh, I fixed it in my test code but not the page. Good catch, thanks. [00:20:15] least i can do.. [00:37:09] * Maniac is wondering how to exapand the cmdline stuff to other UI's [00:37:49] You mean, like a CGI script? [00:38:12] Anyway, that is the subject of future chapters, which I haven't researched yet :) [00:38:37] or xmlrpc or other,,, [00:39:26] The whole point of the AbstractCommand is to make it easy to reuse the commands in other context, so I suspect xmlrpc would be pretty easy, assuming you figure out peak.web. [00:41:50] AbstractCommand setups up environment variables like argv stdin stdout [00:42:57] right [00:43:11] OK, chapter 4 is up to date. [00:43:17] and tested [00:45:05] ok, why does one use 'print >>self.stderr [00:45:07] vs print? [00:46:08] So that if the caller of the AbstractCommand has done something with self.stderr, they'll be able to do whatever it is they wanted to do with the output (like display it on a web page). [00:48:49] self.stderr is any file-like object... [00:50:29] exactly [00:57:34] so you could redirect stdout to a an in memory file object (mmap?) and read it after running the command [01:00:51] Sure. Or just use StringIO. [01:02:32] yeah [01:07:46] * Maniac heads to bed [01:07:59] Sounds like a good idea :) [01:08:04] 'night [01:56:51] ** gpciceri has joined us [02:32:33] ** gpciceri_ has joined us [03:19:54] ** vlado_ has joined us [05:06:06] ** gpciceri has joined us [08:25:15] ** gpciceri has joined us [09:34:59] ** vlado has joined us [11:01:12] ** gpciceri has joined us [14:37:11] {global notice} Hi all! we just lost one of our main rotation servers. the server is out of the rotation, and I'm looking into it currently. [14:38:28] ** _jpl_ has joined us [15:42:34] ** gpciceri has joined us [16:30:33] * Maniac dances around #PEAK and waves hello to _jpl_ and gpciceri and jack-e|away [16:34:51] gpciceri, how's the supybot / jabber work going? [17:11:26] ** gpciceri has joined us [20:32:22] * Maniac notes irc channels very quiet today [23:54:01] ** _jpl_ has left us