---Disconnected (Connection timed out). | 01:14 | |
**** ENDING LOGGING AT Fri Mar 5 01:14:53 2004 | ||
**** BEGIN LOGGING AT Fri Mar 5 01:15:20 2004 | ||
-->You are now talking on #schooltool | 01:15 | |
---Disconnected (Connection reset by peer). | 11:17 | |
**** ENDING LOGGING AT Fri Mar 5 11:17:19 2004 | ||
**** BEGIN LOGGING AT Fri Mar 5 11:17:34 2004 | ||
-->You are now talking on #schooltool | 11:17 | |
---Disconnected (Connection timed out). | 12:38 | |
**** ENDING LOGGING AT Fri Mar 5 12:38:34 2004 | ||
**** BEGIN LOGGING AT Fri Mar 5 12:38:48 2004 | ||
-->You are now talking on #schooltool | 12:38 | |
-->ChrisW (~chrisw@81.5.181.26) has joined #schooltool | 14:26 | |
ChrisW | don't suppose you guys are using ZConfig for configuration by any chance? | 14:26 |
---|---|---|
SteveA | indeed we are | 14:26 |
ChrisW | ooo, does that mean you understand it? ;-) | 14:26 |
SteveA | we have code and tests | 14:27 |
SteveA | that's all :) | 14:27 |
ChrisW | aha | 14:27 |
ChrisW | you have tests for you config? | 14:27 |
ChrisW | (config engine, sorry...) | 14:27 |
ChrisW | I'm lost on what the difference between a section and a multisection is... | 14:28 |
ChrisW | and the difference between a section, a sectiontype and an abstracttype | 14:28 |
ChrisW | and lastly, what's "hander" used for? | 14:28 |
ChrisW | handler, even... | 14:29 |
SteveA | I can't remember, even if I knew once | 14:30 |
SteveA | I can point you at schooltool code | 14:30 |
ChrisW | Fred and Chris aren't as good at documentation as the twisted guys :-S | 14:31 |
SteveA | i found zconfig ok, but then again, we're not doing anything complex with it | 14:31 |
ChrisW | I think I may need to do a dynamic equivalent of: | 14:32 |
ChrisW | <import package="zodb"/> | 14:32 |
ChrisW | to import config schema's for all available pluggins... | 14:32 |
<--ChrisW (~chrisw@81.5.181.26) has left #schooltool | 15:23 | |
-->ChrisW (~chrisw@81.5.181.26) has joined #schooltool | 17:27 | |
ChrisW | hey, you guys got SVN up under viewcvs anywhere? | 17:27 |
ChrisW | anonymous svn access? | 17:27 |
SteveA | no | 17:31 |
mgedmin | we have anonymous svn access over http/webdav/deltav | 17:31 |
SteveA | yes | 17:31 |
mgedmin | no viewcvs | 17:31 |
mgedmin | you can use any browser to get the latest revision of any file | 17:31 |
ChrisW | *nods* | 17:32 |
ChrisW | can't track changes though ;-) | 17:32 |
ChrisW | where is it, anyway? | 17:32 |
ChrisW | (doesn't appear to be linked from schooltool.org...) | 17:32 |
mgedmin | http://source.schooltool.org | 17:32 |
SteveA | track changes? | 17:32 |
SteveA | http://checkins.schooltool.org | 17:32 |
ChrisW | well, diff files, etc | 17:33 |
ChrisW | (without having t odrag out a svn checkout...) | 17:33 |
SteveA | that's what svn is for | 17:33 |
mgedmin | it is mentioned on http://www.schooltool.org/wiki/SchoolToolServers, but not directly on www.schooltool.org for some reason | 17:34 |
ChrisW | I said without having to drag out a whole svn checkout ;-) | 17:34 |
ChrisW | viewcvs is good for that, and creating tarball snapshots ;-) | 17:34 |
mgedmin | does viewcvs support subversion? | 17:34 |
ChrisW | pretty sure it does | 17:35 |
mgedmin | Package: viewcvs | 17:36 |
mgedmin | Depends: python (>= 2.3), python (<< 3), cvs | subversion (>= 0.29) | 17:36 |
ChrisW | :-) | 17:36 |
mgedmin | Suggests: ..., python2.3-subversion | 17:36 |
ChrisW | ? | 17:36 |
mgedmin | I think I'll try to install it on source.schooltool.org over the weekend | 17:37 |
ChrisW | cool | 17:39 |
ChrisW | btw, what kind of tests did you write for your configuration code? | 17:39 |
ChrisW | (well, where can I find them might be a better question :-) ) | 17:39 |
SteveA | http://source.schooltool.org/svn/trunk/schooltool/src/schooltool/tests/test_main.py | 17:42 |
mgedmin | class TestServer | 17:42 |
SteveA SteveA|Home Mar 05 17:42:37 <SteveA>class TestServer(RegistriesSetupMixin, unittest.TestCase): | 17:42 | |
mgedmin | SteveA: you beat me by 0.5 second | 17:42 |
ChrisW | ooo... schooltool is GPL'ed | 17:44 |
ChrisW | didn't know that... | 17:44 |
SteveA | there is some longterm plan to use a different licence | 17:44 |
SteveA | but noone has gotten around to sorting that out yet | 17:44 |
SteveA | so GPL it is | 17:44 |
ChrisW | schooltool is threaded? | 17:44 |
SteveA | in the same way that Zope is | 17:44 |
ChrisW | odd... I thought is would have been more twisted-like... | 17:45 |
SteveA | it uses the zodb | 17:46 |
SteveA | schooltool uses the zodb | 17:46 |
SteveA | twisted generally doesn't | 17:46 |
ChrisW | so? apps don't have to be multi-threaded to use ZODB... | 17:46 |
SteveA | it helps | 17:46 |
SteveA | when you're disk bound | 17:46 |
ChrisW | hehe, I thought twisted provided all the gubbins to make that not matter... | 17:46 |
ChrisW | deferred's and all that... | 17:47 |
mgedmin | yes, as long as your functions do not block | 17:47 |
ChrisW | which functions block? | 17:47 |
mgedmin | with zodb any attribute access might block | 17:47 |
ChrisW | :-S | 17:47 |
mgedmin | if you have to unghostify a persistent object with ZEO over the network, say | 17:47 |
ChrisW | indeed | 17:47 |
mgedmin | thus threads | 17:48 |
ChrisW | so, ZODb doesn't perform well in a single threaded environment? | 17:48 |
SteveA | it performs just fine | 17:48 |
SteveA | just not concurrently | 17:48 |
ChrisW | *grunt* | 17:48 |
ChrisW | you know what I mean ;-) | 17:48 |
ChrisW | so you use the threaded reactor, right? | 17:48 |
mgedmin | I don't know, what is a threaded reactor? | 17:49 |
mgedmin | we do all the HTTP traffic in a single thread | 17:49 |
mgedmin | the twisted way | 17:49 |
mgedmin | but the actual request processing is deferred to separate worker threads | 17:49 |
mgedmin | reactor.callInThread and reactor.callFromThread come in handy | 17:50 |
ChrisW | twisted has a threaded reactor, for people who want threading | 17:50 |
ChrisW | it has lots of big warning about how evil threading is slapped all over it... | 17:50 |
ChrisW | you guys not use a reactor then?! | 17:50 |
ChrisW | aha | 17:51 |
ChrisW | and all the reactors support those, right? | 17:51 |
mgedmin | I'm not sure | 17:53 |
mgedmin | the standard one does | 17:53 |
ChrisW | you use twistd? | 17:53 |
mgedmin | afair from reading the docs, all you have to do is call twisted.python.threadable.init() before entering the main reactor loop | 17:54 |
mgedmin | we do not use twistd | 17:54 |
ChrisW | how come? | 17:54 |
*mgedmin shrugs | 17:54 | |
ChrisW | what's the difference between callFromThread and callInThread? | 17:55 |
mgedmin | the first one is called in a worker thread asks the main thread to execute a function | 17:56 |
mgedmin | the second one is called in the main thread and asks a(ny) worker thread to execute a function | 17:56 |
ChrisW | right, so you do callInThread to chuck out to bits which fiddle with ZODB | 17:57 |
ChrisW | and callFromThread to do HTTP? | 17:57 |
ChrisW | btw, have you seen: | 17:58 |
ChrisW | twisted.internet.threads.deferToThread | 17:58 |
mgedmin | yes | 17:59 |
mgedmin | I do not remember if I have | 17:59 |
ChrisW | how come ya don't use that then? ;-) | 17:59 |
SteveA | patches accepted | 17:59 |
ChrisW | *grinz* | 18:00 |
mgedmin | how is it better than using callInThread/callFromThread? | 18:01 |
ChrisW | *shrugs* | 18:01 |
ChrisW | only the one call | 18:01 |
ChrisW | I am merely a tortured conduit between #twisted and #schooltool ;-) | 18:01 |
<--ChrisW (~chrisw@81.5.181.26) has left #schooltool | 18:42 | |
-->alga (~alga@office.pov.lt) has joined #SchoolTool | 21:35 | |
<--SteveA has quit ("Client exiting") | 22:09 | |
---Disconnected (Invalid argument). | 23:53 | |
**** ENDING LOGGING AT Fri Mar 5 23:53:24 2004 | ||
**** BEGIN LOGGING AT Fri Mar 5 23:53:51 2004 | ||
-->You are now talking on #schooltool | 23:53 |
Generated by irclog2html.py 2.15.1 by Marius Gedminas - find it at mg.pov.lt!