IRC log of #zope3-dev for Wednesday, 2008-06-04

*** run|sony has quit IRC00:04
*** timte_ has quit IRC00:21
*** RaFromBRC is now known as RaFromBRC|lunch00:22
*** nathany has quit IRC00:23
*** wiggy has quit IRC00:28
*** b52laptop has joined #zope3-dev00:35
*** nathany has joined #zope3-dev00:44
whitanyone have any code for loading configparser data into a vocabulary?00:47
*** sp0cksbeard has quit IRC00:49
*** run|sony has joined #zope3-dev00:51
*** aclark|away is now known as aclark00:51
*** benji has joined #zope3-dev00:51
*** whit is now known as whit|out00:58
*** lucielejard has quit IRC01:04
*** norro has quit IRC01:14
*** strichter has joined #zope3-dev01:21
*** srichter has quit IRC01:22
*** run|sony_ has joined #zope3-dev01:27
*** fairwinds has joined #zope3-dev01:28
*** jpcw2002 has left #zope3-dev01:37
*** febb has quit IRC01:38
Pan_can i connect zope.schema and z3c.schema :D ?01:40
Pan_no answers, hehe, lets try at this night hour! :D01:41
*** run|sony has quit IRC01:45
*** jamur2 has quit IRC01:48
*** lurkymclurkleton has quit IRC01:51
Pan_it works ;)01:56
*** jhauser has quit IRC02:07
*** strichter has quit IRC02:10
*** reco has quit IRC02:14
*** greenman has joined #zope3-dev02:26
*** RaFromBRC|lunch is now known as RaFromBRC02:30
*** yota has quit IRC02:33
*** nathany has quit IRC02:41
Pan_damn, how to use DateSetWidget?02:46
*** aclark is now known as aclark|zpugdc02:54
*** rmarianski has quit IRC02:55
*** deo has joined #zope3-dev02:59
*** b52laptop has quit IRC03:01
*** lurkymclurkleton has joined #zope3-dev03:15
*** edgordon has joined #zope3-dev03:24
*** febb has joined #zope3-dev03:28
*** lurkymclurkleton has quit IRC03:37
fcorreaPan_: What you mean by connect schemas?03:46
*** alecm has quit IRC03:48
fcorreaI think z3c.schema provide some extra fields03:48
fcorreafields not provided by zope.chema03:49
*** philiKON has quit IRC03:55
*** salfield has quit IRC04:08
*** whit has joined #zope3-dev04:38
*** RaFromBRC has quit IRC05:03
*** febb has quit IRC05:18
*** quodt has quit IRC05:20
*** dtremea has joined #zope3-dev05:20
*** deo has quit IRC05:20
*** dtremea is now known as deo05:20
*** romanofski has quit IRC05:53
*** alecm has joined #zope3-dev06:48
*** stub has joined #zope3-dev06:55
*** binseer has joined #zope3-dev07:05
*** rcrafton has quit IRC07:05
*** afd_ has joined #zope3-dev07:10
*** aclark|zpugdc is now known as aclark07:22
*** greenman has quit IRC07:24
*** fairwinds has quit IRC07:25
*** alecm has quit IRC07:31
*** alecm has joined #zope3-dev07:32
*** greenman has joined #zope3-dev07:32
*** aclark is now known as aclark|away07:32
*** fcorrea has quit IRC07:43
*** greenman has quit IRC07:46
*** febb has joined #zope3-dev07:55
*** baijum has joined #zope3-dev07:56
*** vimes656 has joined #zope3-dev08:12
*** stub has quit IRC08:16
*** jayaraj has joined #zope3-dev08:16
*** stub has joined #zope3-dev08:23
*** jukart has joined #zope3-dev08:23
*** sorindregan has joined #zope3-dev08:28
*** djohnson has joined #zope3-dev08:29
*** dunny_ has joined #zope3-dev08:29
*** dunny has quit IRC08:33
*** dunny has joined #zope3-dev08:42
*** djohnson__ has quit IRC08:45
*** dunny_ has quit IRC08:50
*** markusleist has joined #zope3-dev09:00
*** dunny_ has joined #zope3-dev09:08
*** menesis has joined #zope3-dev09:11
*** dunny has quit IRC09:18
*** romanofski has joined #zope3-dev09:30
*** dunny has joined #zope3-dev09:32
*** d2m has joined #zope3-dev09:35
*** xenru has joined #zope3-dev09:36
*** dunny has quit IRC09:37
*** dunny_ has quit IRC09:40
*** agroszer has joined #zope3-dev09:45
*** yvl has joined #zope3-dev10:06
*** philiKON has joined #zope3-dev10:12
*** stub has quit IRC10:13
*** tarek has joined #zope3-dev10:14
*** stub has joined #zope3-dev10:17
*** amleczko has joined #zope3-dev10:19
*** seletz has joined #zope3-dev10:20
amleczkoi have a problem with threads in zope3. how can i configure thread pool size in zope 3?10:23
afd_amleczko: example: threads 410:24
afd_in zope.conf10:24
afd_as far as I know10:24
amleczkoafd_: how can i check how many thread zope opened ?10:25
afd_maybe zc.z3monitor can help10:26
*** jpcw2002 has joined #zope3-dev10:26
afd_default is 4, I think10:27
amleczkoafd_: thanks10:27
*** vimes656 has quit IRC10:37
*** pyqwer has joined #zope3-dev10:47
*** jhauser has joined #zope3-dev10:50
*** MJ has joined #zope3-dev10:51
*** kursor has joined #zope3-dev10:51
*** vimes656 has joined #zope3-dev10:52
*** thruflo has joined #zope3-dev11:01
*** malthe has joined #zope3-dev11:07
*** febb has quit IRC11:08
*** junkafarian has joined #zope3-dev11:14
*** b52laptop has joined #zope3-dev11:24
*** timte has joined #zope3-dev11:31
malthewhen building out zc.buildout, I get this:
*** philiKON has quit IRC11:34
*** maurits has joined #zope3-dev11:35
amleczkoi'm searching for howto for zc.z3monitor11:36
amleczkoREADME.txt in the package is not clear enough, help apriciated11:36
*** vimes656_ has joined #zope3-dev11:37
*** yvl has left #zope3-dev11:38
*** maurits__ has joined #zope3-dev11:42
*** maurits has quit IRC11:43
*** maurits__ is now known as maurits11:43
*** xenru has quit IRC11:45
*** junkafarian has quit IRC11:48
amleczkoi'm using task.LoopingCall from twisted to schedule tasks. when zope calls this task (it takes some time to execute) all threads seems to be locked, any sugestions ?11:53
*** vimes656 has quit IRC11:54
*** xenru has joined #zope3-dev11:56
*** norro has joined #zope3-dev12:00
*** philiKON has joined #zope3-dev12:02
*** djohnson has quit IRC12:02
*** djohnson has joined #zope3-dev12:03
*** quodt has joined #zope3-dev12:03
*** BjornT has quit IRC12:09
*** tdoggette has quit IRC12:11
*** vimes656_ has quit IRC12:11
*** BjornT has joined #zope3-dev12:12
*** greenman has joined #zope3-dev12:12
*** vimes656 has joined #zope3-dev12:15
*** dunny has joined #zope3-dev12:26
*** ranjith has joined #zope3-dev12:35
ranjithhi all12:35
ranjithhi i was configuring zope2 svn checkout but got an error that the python interpreter is not having a ..I had configured the python2.5.2 from the downloaded file from python.org12:39
ranjithwhat to do to resolve it.12:39
malthewhere's the buildbot waterfall for the zope repository again?12:43
tarekmalthe, you need to point the python2.3 interpreter into the .cfg, either remove teh section if you don't have it (but this would make your test not run under 2.3 of course)12:57
malthetarek: thanks--I figured that out eventually12:58
malthethe test fail12:58
maltheMustapha and I were trying to add + and - operators.12:58
maltherather succesfully, but the test suite in trunk fails.12:58
tarek+ and - operaors ?12:58
malthetarek: see post to zope.devel and
tarekah nice feature indeed :)12:59
malthetarek: it can't be done easily using += and -=; but Mustapha found that it was quite easy to do like this:13:00
maltheeggs =13:00
malthe   + some_additional_egg13:00
malthewhich is not quite as intuitive I must admit13:00
tarekwell, the problem is, if you have one "+" it means that the whole eggs variable takes the inherited value right ?13:03
tarekso all lines will need to have the "+" or the "-" sign ?13:03
maltheright that's the problem exactly13:03
maltheit's a bit ambigious13:03
maltheperhaps simply allowing to inherit the whole value is better13:04
maltheeggs = ${buildout:eggs}13:04
malthesuch a circular reference is not allowed right now13:04
malthetarek: perhaps ConfigParser.RawConfigParser could be subclassed to allow it?13:07
maltheit's just a regular expression defining '=' and ':'.13:07
*** mgedmin has joined #zope3-dev13:08
* malthe tries13:09
tarekWhat Jim thinks about it ?13:13
tarekmalthe, maybe we could have extra variables like this:13:15
tarekeggs:additional =13:15
tarek    one13:15
tarek  two13:15
tarekwith a different sign than ':' of course13:16
*** tarek is now known as tarek|lunch13:16
*** timte has quit IRC13:24
*** greenman has quit IRC13:27
*** menesis has quit IRC13:31
*** menesis has joined #zope3-dev13:34
malthepdb.set_trace doesn't seem to work inside the zc.buildout testrunner.13:48
benjimalthe, brainstorming: what about "eggs+ = foo" or "+eggs = foo" (although, I *really* like the "eggs += foo" syntax better13:48
benjimalthe: it does, but because some layer tests are run in a subprocess, you can't do pdb's there; in that case use --layer= to run just the layer of interest and your pdb will work13:48
maltheit's really difficult to work without pdb13:48
maltheok let me try that13:49
malthewhat is my layer of interest though? I added some tests to buildout.txt13:49
benjithe testrunner error message explains it: the layer is being run in a subprocess and pdb wants to talk to stdin/stdout13:52
maltheright --- but how do I know what layer to specify using --layer ?13:54
mgedmincould we make the test runner use a different set of pipes for communication13:54
mgedminand leave stdin/stdout/stderr alone?13:54
*** tarek|lunch is now known as tarek13:55
benjimgedmin: I don't see why not; might be tricky to do on Windows13:57
benjimalthe: just before the error message it'll display what layer it's entering13:57
tarekbenji, +eggs looks nice13:58
mgedminsay rather strange13:59
*** amleczko has left #zope3-dev13:59
mgedminevery programmer will understrand +=13:59
*** b52laptop has quit IRC13:59
mgedminwhere did that extra r came from?13:59
mgedminotoh += is a bit of an extension to the .ini file format13:59
mgedminand it's not clear where the original value that you're extending comes from13:59
benjiyep, I prefer += as well, but there are apparently it's difficult to do13:59
*** b52laptop has joined #zope3-dev14:00
tarekyeah += would brake ConfigParser format14:00
mgedmineggs = ${original:eggs} extra ones14:00
malthetarek: it's easy enough to subclass it and fix that14:01
mgedminfor whatever existing spelling buildout has14:01
mgedminI don't remember it14:01
tarekmgedmin, yes that what we do right now14:01
*** dunny_ has joined #zope3-dev14:01
tarekmalthe, absolutely, but from the begining i think it sticks with ini standard. i wonder what would Jim say about htis14:03
malthebenji: what layer would this be:
malthei'm not getting it :-)14:03
malthetarek: right14:03
maltheI think we can justify subclassing and extending it's behavior14:03
tareki guess14:05
tarekI am looking forward for the option that will alow a section to be platform dependant, as well14:06
maltheit's probably zope.testing.testrunner.layer.UnitTests then14:07
malthehmm no that didn't work14:07
*** edgordon has quit IRC14:10
*** dunny_ has quit IRC14:10
*** dunny has quit IRC14:10
mgedminmalthe: there's not enough information in your paste to say14:11
mgedminthe test runner says "Running tests from layer XXXXX" way above what you pasted14:12
*** amleczk1 has joined #zope3-dev14:13
mgedminthat looks like the tests are using os.system to run the actual buildout process in a doctest14:13
mgedminwhich means there's no way you can trick the test runner into giving you a working pdb prompt...14:13
mgedminor am I wrong?14:14
* mgedmin is not familiar with buildout's tests14:14
* mgedmin avoids pdb because it is so limited14:14
malthemgedmin: I think you're right14:17
malthei'll have to find an alternative :-)14:17
*** malthe is now known as malthe|lunch14:17
*** srichter has joined #zope3-dev14:17
*** timte has joined #zope3-dev14:21
mgedminprint statements14:22
mgedminvery useful alternative to pdb14:22
mgedminalso, understanding the code so you know where to put the print statements and how to interpret their results14:22
mgedminlinus torvalds also subscribes to this debugging theory, so it must have a grain of truth at least14:22
*** edgordon has joined #zope3-dev14:25
*** deo has quit IRC14:26
*** deo has joined #zope3-dev14:26
*** benji has quit IRC14:27
tarekzc.buildout.testing should use a direct call to pdb to avoid relying on the output. They may differ depending on your environment (virtualenv or not)14:27
tarekpdb would work then14:28
tarekwe changed that in ZopeSkel to provide a paster() testing API14:29
*** stonor has joined #zope3-dev14:30
tarekI think the refactoring would be easy in zc.buildout.testing, in order to call the buidl within the same process, then print the same output os.system would14:30
*** ranjith has quit IRC14:31
*** fairwinds has joined #zope3-dev14:31
* tarek is going to try that in a branch14:32
*** tdoggette has joined #zope3-dev14:51
*** Jell-O-Fishi has joined #zope3-dev15:06
*** kursor has quit IRC15:14
*** mgedmin has quit IRC15:17
*** tdoggette has quit IRC15:17
*** tdoggette has joined #zope3-dev15:17
*** benji has joined #zope3-dev15:18
*** b52laptop has quit IRC15:20
*** mkerrin has joined #zope3-dev15:20
*** mgedmin has joined #zope3-dev15:21
*** b52laptop has joined #zope3-dev15:22
*** run|sony_ has quit IRC15:22
*** baijum has quit IRC15:24
*** thruflo has left #zope3-dev15:27
*** vimes656 has quit IRC15:28
*** fcorrea has joined #zope3-dev15:29
*** projekt01 has joined #zope3-dev15:30
*** dobee has joined #zope3-dev15:36
*** run|sony has joined #zope3-dev15:42
*** romanofski has quit IRC15:45
*** romanofski has joined #zope3-dev15:46
*** rcrafton has joined #zope3-dev15:48
*** stub has quit IRC15:49
*** timte_ has joined #zope3-dev15:52
*** timte has quit IRC15:55
*** lurkymclurkleton has joined #zope3-dev15:55
*** jamur2 has joined #zope3-dev15:56
run|sonyTheuni, ?15:56
run|sonyTheuni, url for book?15:56
*** xenru has quit IRC15:57
*** jhauser has quit IRC15:57
*** amleczk1 has left #zope3-dev15:57
Theunirun|sony: plonebook.info16:01
run|sonygot it16:01
*** lucielejard has joined #zope3-dev16:06
*** lucielejard has quit IRC16:07
*** timte_ has quit IRC16:07
*** lucielejard has joined #zope3-dev16:07
*** timte has joined #zope3-dev16:08
*** stonor has left #zope3-dev16:09
*** mcdonc has joined #zope3-dev16:15
*** fcorrea has left #zope3-dev16:16
*** ignas has joined #zope3-dev16:17
*** run|sony has quit IRC16:30
*** Jell-O-Fishi has quit IRC16:32
*** sp0cksbeard has joined #zope3-dev16:32
*** fcorrea has joined #zope3-dev16:35
*** J1m has joined #zope3-dev16:38
*** rcrafton_ has joined #zope3-dev16:40
*** malthe|lunch is now known as malthe16:44
*** sorindregan has quit IRC16:50
*** mcdonc_ has joined #zope3-dev16:53
*** rcrafton has quit IRC16:54
*** mcdonc has quit IRC16:54
*** reco has joined #zope3-dev17:01
Pan_during usign datetimewidget im keeping this error:17:01
Pan_TypeError: ('Could not adapt', <zc.resourcelibrary.publication.Request instance URL=>, <InterfaceClass zope.interface.common.idatetime.ITZInfo>)17:01
Pan_problem is occuring here:17:01
Pan_            tzinfo = ITZInfo(request)17:01
Pan_but dunno why?17:01
mgedminlooks like missing zcml setup17:02
mgedminthis is real life or a unit test?17:02
Pan_real life17:03
Pan_im just using DatetimeWidget17:03
Pan_during creation of form using formlib17:03
Pan_nothing amazing, simple thing17:04
Pan_but request cant be adapt to ITZInfo. should i somewhere declare timezone (in zcml) or something?17:04
mgedminlet me take a look at zc.datetimewidget17:05
Pan_allrite! ;)17:05
Pan_(line 45)17:05
mgedminread widgets.txt, around line 5017:06
mgedmin"In order to handle timezones correctly the zope instance has to17:06
mgedminprovide an adapter from IBrowserRequest to ITZInfo. It is up to the17:06
mgedmininstance what kind of implementation it uses."17:06
mgedminthere's a demo17:06
Pan_ahhh. ahhh! silly me.17:07
Pan_thanks mgedmin.17:07
Pan_few hours ago i was focusing on DateSetWidget and i omited this section17:07
Pan_by the way, perhaps you can help me a little bit in using DateSetWidget? it have 4 parameters in init, but other widgets got only 3. and there is problem using it in form.17:09
mgedminoh, really?17:09
mgedminisn't it automatically selected as the widget for you when you have a Set(value=Date()) field in your schema?17:09
Pan_it wasnt working for me.17:10
Pan_perhaps i was using it in to complicated example. ill create some silly form and try to use it.17:10
*** menesis has quit IRC17:11
mgedminnote that I've no familiarity whatsoever with zc.datetimewidget17:11
mgedminbut I've encountered other Set() widgets before17:11
mgedminthere's an extra dispatch step going on that adds the extra argument17:11
Pan_what extra dispatch step?17:12
mgedminzope looks up widgets as adapters from (field, request) to IInputWidget17:13
mgedminwhen field is a Set object, the adapter found is not the final widget17:13
mgedminbut a dispatcher that performs an adapter lookup from (field, field.value, request) to IInputWidget17:13
mgedminthis way you can have different widgets for Set(value=TextLine()) and Set(value=Date())17:14
mgedminI may have some names wrong17:14
mgedminyes, it's Set(value_type=foo), not Set(value=foo)17:14
mgedminthe dispatcher is
Pan_ok. i will browse its code.17:15
mgedminin case you're interested in looking underneath the hood to see how the machinery works17:15
mgedminit's a one-liner, essentially ;-)17:15
Pan_i think that looking under machinery enigne  is only way of developing in zope ;)17:16
mgedminthat's my view as well, but I hope that it's wrong :-)17:17
*** whit has quit IRC17:24
*** yotaff has quit IRC17:35
*** mcdonc_ has quit IRC17:35
*** whit has joined #zope3-dev17:39
*** rmarianski has joined #zope3-dev17:41
*** timte has quit IRC17:55
*** timte has joined #zope3-dev17:56
*** reco has quit IRC18:00
*** reco has joined #zope3-dev18:01
*** binseer has quit IRC18:02
*** b52laptop has quit IRC18:08
*** timte has quit IRC18:09
*** b52laptop has joined #zope3-dev18:09
*** timte has joined #zope3-dev18:10
*** philiKON has quit IRC18:14
*** hexsprite has quit IRC18:16
*** hexsprite has joined #zope3-dev18:16
*** hexsprite_ has joined #zope3-dev18:17
*** jayaraj has quit IRC18:22
*** projekt01 has quit IRC18:23
*** timte has quit IRC18:27
*** yotaff has joined #zope3-dev18:30
*** thruflo has joined #zope3-dev18:31
*** b52laptop has quit IRC18:32
*** aclark|away is now known as aclark18:33
*** mcdonc has joined #zope3-dev18:36
*** __gotcha has quit IRC18:36
*** hexsprite has quit IRC18:37
*** andrea-bs has joined #zope3-dev18:38
*** febb has joined #zope3-dev18:40
*** hexsprite_ has quit IRC18:40
edgordoni am trying to run the tests for z3c.widget and am getting the following error:18:41
edgordon    zope.component.adapter_hook.reset()18:41
edgordonAttributeError: 'function' object has no attribute 'reset'18:41
edgordonanyone seen that before?18:41
*** timte has joined #zope3-dev18:44
*** Jell-O-Fishi has joined #zope3-dev18:47
*** run|sony has joined #zope3-dev18:52
*** alga has joined #zope3-dev18:52
*** MJ is now known as MJ|dinner18:54
*** jodok has joined #zope3-dev18:54
*** pyqwer has quit IRC19:02
*** edgordon has quit IRC19:05
*** jodok has quit IRC19:06
*** rcrafton_ is now known as rcrafton19:14
*** djohnson has quit IRC19:15
*** djohnson has joined #zope3-dev19:16
*** harobed_ has joined #zope3-dev19:17
*** djohnson_ has joined #zope3-dev19:18
*** hexsprite has joined #zope3-dev19:20
*** malthe is now known as malthe|away19:25
*** harobed_ has quit IRC19:27
*** andrea-bs has left #zope3-dev19:28
*** mcdonc has quit IRC19:28
*** mcdonc has joined #zope3-dev19:32
*** alecm has quit IRC19:32
*** djohnson has quit IRC19:37
*** run|sony has quit IRC19:38
*** rocky has quit IRC19:44
*** quodt has quit IRC19:45
*** ipux has quit IRC19:46
*** RaFromBRC has joined #zope3-dev19:48
*** rocky has joined #zope3-dev19:48
*** salfield has joined #zope3-dev19:54
*** ignas has quit IRC19:55
*** lucielejard has quit IRC19:56
*** whit has quit IRC19:56
*** mcdonc has quit IRC19:56
*** mcdonc has joined #zope3-dev19:59
*** mkerrin has quit IRC19:59
*** yotaff has quit IRC20:03
*** mcdonc has quit IRC20:05
*** zagy has quit IRC20:08
*** thruflo has quit IRC20:08
*** seletz has quit IRC20:08
*** jukart has quit IRC20:12
*** rocky has quit IRC20:13
*** edgordon has joined #zope3-dev20:16
*** tarek is now known as tarek|away20:18
*** whit has joined #zope3-dev20:25
*** tarek|away has quit IRC20:25
*** tarek has joined #zope3-dev20:26
*** whit has quit IRC20:27
*** philiKON has joined #zope3-dev20:29
*** djohnson_ has quit IRC20:33
*** whit has joined #zope3-dev20:35
*** djohnson has joined #zope3-dev20:37
*** dobee has quit IRC20:39
*** jukart has joined #zope3-dev20:40
*** nathany has joined #zope3-dev20:42
*** tarek has quit IRC20:42
*** aclark is now known as aclark|boat20:43
*** djohnson_ has joined #zope3-dev20:46
*** MJ|dinner is now known as MJ20:48
*** edgordon has quit IRC20:52
*** MJ is now known as MJ|out20:54
*** nathany is now known as nathany_focused20:56
*** tarek has joined #zope3-dev20:57
*** edgordon has joined #zope3-dev21:02
*** djohnson has quit IRC21:03
*** tarek has quit IRC21:06
*** jukart has quit IRC21:10
*** rocky has joined #zope3-dev21:15
*** kev_ has joined #zope3-dev21:20
*** reco has quit IRC21:25
*** jodok has joined #zope3-dev21:29
*** tarek has joined #zope3-dev21:33
*** MJ|out is now known as MJ21:36
*** djohnson has joined #zope3-dev21:37
*** djohnson_ has quit IRC21:53
*** zagy has joined #zope3-dev21:56
*** mgedmin has quit IRC21:58
*** maurits has quit IRC21:59
*** reco has joined #zope3-dev22:13
*** tdoggette has quit IRC22:15
*** dvschramm has quit IRC22:20
*** dunny has joined #zope3-dev22:27
*** dunny has quit IRC22:46
*** dunny has joined #zope3-dev22:50
*** dobee has joined #zope3-dev22:52
*** djohnson has quit IRC22:59
*** tdoggette has joined #zope3-dev23:06
*** afd_ has quit IRC23:26
*** dunny_ has joined #zope3-dev23:26
*** alga has quit IRC23:26
*** agroszer has quit IRC23:27
*** MJ is now known as MJ|out23:35
*** run|sony has joined #zope3-dev23:35
*** dunny has quit IRC23:37
*** amleczko has joined #zope3-dev23:39
*** amleczko has left #zope3-dev23:39
*** deo has quit IRC23:44
*** hexsprite has quit IRC23:47

Generated by 2.15.1 by Marius Gedminas - find it at!