[01:39:46] ** gpciceri has joined us [12:18:05] ** rdmurray has joined us [12:48:44] ** gpciceri has joined us [14:35:15] ** gpciceri has joined us [14:54:56] Hmm. I think there's a fundamental bug in IntroToPeak :( [15:31:38] oh oh [15:31:40] what is it? [15:35:03] According to the interface docs, newItem doesn't take OID as an argument. [15:37:14] that kind of messes up the examples considerably. [15:37:19] I think I need to talk to PJE about it. [15:41:49] aw [15:42:31] the examples *work* as written, but they aren't introducing proper PEAK practice, I think. [15:42:48] if i'm seeing "GET http://someaddress/ HTTP/1.1" 200 does that mean that someone is using the server as a proxy? [15:43:28] I think I need to add stuff about how you get from a piece of data that identifies an object to the object's OID. [15:43:47] Or at leas that they are trying to, I think. [15:43:57] But I'm not sure. [15:45:29] but it's a http 200 response code which seems to mean OK [15:45:47] Well, try it yourself and see if it works :) [15:45:53] how? [15:46:08] Put the address of the server into the "proxy" configuration for your browser. [15:46:16] And try to browse some other site. [15:52:02] it just ends up returning my site [15:52:17] and the address bar still reads the other site.... [15:52:24] That's kind of weird. [15:52:27] yes... [15:52:57] So they probably aren't succeeding in using you as a proxy, but on the other hand your web server may not be configured quite right. [15:53:18] i'm using proxypass [15:53:27] to serve non-apache sites behind apache [15:53:57] I've never tested this kind of thing myself. It is possible it is normal apache behavior. [15:57:19] well i have ProxyRequests off [15:58:12] too bad i can't access apache.org... i wonder if apache crashed :) [16:02:52] i have it specifally turned off. [16:06:37] i have a feeling i have something not right [16:08:06] Hey, do you know how to get a list of an objects attributes in python? [16:08:22] I suppose dir would work... [16:09:13] But I really just want the attributes on the object and not on its bases [16:09:41] Ah, __dict__. [16:21:52] * Maniac is trying his first real foray into peak.storage [16:24:34] me to. [16:28:33] Hmm. It seems like in order to determine what sort of ghost to return I pretty much have to do the query equivalent to the _load operation :( [16:29:33] Maybe I should be using adapters instead of subclases. [16:31:27] ** gpciceri has joined us [16:31:49] Oh, wait, I can encode information in the oid.... [16:43:49] maniac: I take it back, the IntroToPeak examples aren't wrong. I just forgot that newItem returns the object and not the oid. [16:44:22] PJE is fiendisly clever :) [16:44:56] cool [16:45:16] * Maniac is trying to figure out a resonable permissions system... [22:04:48] Traceback (most recent call last): [22:04:48] File "/usr/bin/peak", line 4, in ? [22:04:48] commands.runMain( commands.Bootstrap ) [22:04:48] File "/usr/lib/python2.2/site-packages/peak/running/commands.py", line 70, in runMain [22:04:51] result = factory().run() [22:04:54] File "/usr/lib/python2.2/site-packages/peak/running/commands.py", line 98, in [22:04:57] factory = lambda: ob(config.makeRoot()) [22:04:59] File "/usr/lib/python2.2/site-packages/peak/running/commands.py", line 303, in __call__ [22:05:03] return cmd.interpret(cmd.argv[1]) [22:05:05] File "/usr/lib/python2.2/site-packages/peak/running/commands.py", line 629, in interpret [22:05:08] return self.getSubcommand(factory) [22:05:11] File "/usr/lib/python2.2/site-packages/peak/running/commands.py", line 271, in getSubcommand [22:05:14] return super(AbstractInterpreter,self).getSubcommand(executable, **kw) [22:05:16] File "/usr/lib/python2.2/site-packages/peak/running/commands.py", line 183, in getSubcommand [22:05:20] return factory(**kw) [22:05:22] File "/usr/lib/python2.2/site-packages/peak/running/commands.py", line 303, in __call__ [22:05:25] return cmd.interpret(cmd.argv[1]) [22:05:27] File "/usr/lib/python2.2/site-packages/peak/running/commands.py", line 346, in interpret [22:05:30] config.loadConfigFile(parent, filename) [22:05:33] File "/usr/lib/python2.2/site-packages/peak/config/config_components.py", line 387, in loadConfigFile [22:05:36] ConfigReader(pMap,prefix).readFile(filename) [22:05:39] File "/usr/lib/python2.2/site-packages/peak/util/FileParsing.py", line 309, in readFile [22:05:42] self.parse(fromFile(filename, mode)) [22:05:44] File "/usr/lib/python2.2/site-packages/peak/util/FileParsing.py", line 323, in parse [22:05:47] section(s,l,li) [22:05:50] File "/usr/lib/python2.2/site-packages/peak/config/config_components.py", line 490, in add_section [22:05:53] self.process_settings(section, lines, handler) [22:05:55] File "/usr/lib/python2.2/site-packages/peak/util/FileParsing.py", line 342, in process_settings [22:06:03] handler(section,n,v,l) [22:06:06] File "/usr/lib/python2.2/site-packages/peak/config/config_components.py", line 466, in add_setting [22:06:10] _ruleName = PropertyName(section+name) [22:06:12] TypeError: cannot concatenate 'str' and 'NoneType' objects [22:06:14] debug that [22:09:52] ** rdmurray has joined us [22:09:52] ** jack-e|office has joined us [22:09:52] ** Maniac has joined us [22:11:43] ah netsplit... [22:11:52] {global notice} Hi all, we seem to be having some problems with european hubbing. I'm working on the problem right now, and I should have things back to normal in a minute [23:19:10] anyone know how to wrap a traceback gracefully when i get a unique key constraint error using peak.storage and sqlite?