IRC log of #zope3-dev for Wednesday, 2009-04-08

mgedminwait, where's the recursive error?00:00
mgedminI don't see a recursive validation problem in your code, what am I missing?00:01
mgedminif you set the 'parent' attr of an obj before adding it to children, it should just work, no?00:01
mgedminactually, I don't believe FieldProperty validates what happens to the list after the initial assignment00:02
mgedmin(BTW you use a nonpersistent list there---this might hurt you sooner or later)00:02
suptonright, FieldProperty does not know about extend/append of mutable collection fields, but what happens is that FieldProperty attempts to validate Object field, it not only validates that the object contained meets an interface, but it does validation (ostensibly for required) on the contained object, which includes the current state of the List field value, so it isn't children.append() triggering this, but setting the parent00:08
suptonI'm punting and just not using FieldProperty for parent, writing my own property on the class00:09
* mgedmin never uses FieldProperty BTW00:10
mgedminwhat's wrong with the list field value?00:10
mgedminI mean, if self.children = [] didn't barf, why would it suddenly start barfing when you set the parent on an unrelated object?00:11
mgedmindo you have additional constraints somewhere, saying that self must be in self.parent.children?00:11
*** bigkevmcd has quit IRC00:16
*** bigkevmcd has joined #zope3-dev00:16
suptonno additional constraints, as pasted, I get the recursion and the monster traceback it entails... I'm not sure why00:19
mgedmincan you pastebin the traceback?00:19
suptonFieldProperty's notion of validation for Object fields is too aggressive00:19
mgedmincould be00:19
suptonin general, I think... it should only validate that the object (if required) provides an interface, not validate the fields of that object00:19
mgedminI never use Object fields?00:20
mgedminwell, I lie00:20
*** aaronv has quit IRC00:20
mgedminbut I never use them for validation00:20
suptonbut, it does not do shallow validation... it isn't really FieldProperty, but Object._validate() at fault00:20
mgedminI guess the rationale behind that was that you'd construct a form from a schema containing Object fields00:20
mgedminand when the user submits it, you want the fields of those objects to be validated too00:20
mgedminno, I don't see it00:21
mgedmindoes List() imply min_length=1 by default?00:21
mgedminbut then FieldProperty would be unhappy00:21
mgedminare there unrelated uninitialized fields?00:21
*** Theuni1 has quit IRC00:29
*** Theuni2 has joined #zope3-dev00:29
*** Theuni2 has quit IRC00:40
*** Theuni1 has joined #zope3-dev00:40
*** Theuni1 has quit IRC00:44
*** benji has quit IRC00:45
*** lucielejard has quit IRC00:45
*** sp0cksbeard has joined #zope3-dev00:46
*** sp0cksbeard has left #zope3-dev00:48
*** J1m_ has joined #zope3-dev00:53
*** redir_ has quit IRC00:58
*** J1m has quit IRC01:01
*** cshenton has quit IRC01:03
*** jamur2 has quit IRC01:05
*** regebro has quit IRC01:13
*** J1m_ has quit IRC01:18
*** iham has joined #zope3-dev01:24
*** iham has quit IRC01:33
*** lurkymclurkleton has quit IRC01:36
*** greenman has quit IRC01:47
*** harobed has quit IRC01:52
*** junkafarian_ has joined #zope3-dev01:57
*** mcdonc has quit IRC02:01
*** junkafarian has quit IRC02:13
*** junkafarian_ has quit IRC02:19
*** JaRoel|4D has quit IRC02:20
*** cbcunc has quit IRC02:43
*** greenman has joined #zope3-dev02:48
*** dunny_ has quit IRC03:00
*** mgedmin has quit IRC03:01
*** nathany has quit IRC03:03
*** davisagli has left #zope3-dev03:11
*** ignas has joined #zope3-dev03:19
*** alga has quit IRC03:35
*** romanofski has joined #zope3-dev03:38
*** kaeru has quit IRC04:24
*** kaeru has joined #zope3-dev04:28
*** strichter has quit IRC04:45
*** strichter has joined #zope3-dev04:48
*** strichter has quit IRC04:55
*** strichter has joined #zope3-dev04:55
*** rocky has quit IRC05:11
*** dunny has joined #zope3-dev05:13
*** ignas has quit IRC05:14
*** JaRoel|4D has joined #zope3-dev05:18
*** greenman has quit IRC05:19
*** alecm has quit IRC05:25
*** greenman has joined #zope3-dev05:49
*** baijum has joined #zope3-dev06:02
*** baijum has quit IRC06:23
*** andycat has joined #zope3-dev06:24
*** afd_ has joined #zope3-dev06:58
*** greenman has quit IRC07:24
*** dunny has quit IRC07:25
*** andycat2 has joined #zope3-dev07:26
*** andycat has quit IRC07:26
*** andycat2 is now known as andycat07:26
*** _srichter has joined #zope3-dev07:31
*** afd_ has quit IRC07:44
*** brandon_rhodes has quit IRC07:45
*** strichter has quit IRC07:53
*** pcardune has joined #zope3-dev07:58
*** stub has joined #zope3-dev08:00
*** greenman has joined #zope3-dev08:05
*** Theuni1 has joined #zope3-dev08:12
*** kursor has joined #zope3-dev08:16
*** jukart has joined #zope3-dev08:17
*** _srichter is now known as srichter08:20
*** ChanServ sets mode: +o srichter08:20
*** zagy has quit IRC08:22
*** greenman has quit IRC08:27
*** basti__ has joined #zope3-dev08:28
*** JaRoel|4D has quit IRC08:30
*** redir has joined #zope3-dev08:40
*** zagy has joined #zope3-dev08:42
*** redir has quit IRC08:44
*** jukart has quit IRC09:02
*** markusleist has joined #zope3-dev09:07
*** malthe has joined #zope3-dev09:11
*** davisagli has joined #zope3-dev09:17
*** stub has quit IRC09:29
*** romanofski has quit IRC09:30
*** JaRoel|4D has joined #zope3-dev09:30
*** romanofski has joined #zope3-dev09:34
*** goschtl has joined #zope3-dev09:43
*** quodt has joined #zope3-dev09:44
*** stub has joined #zope3-dev09:45
*** jukart has joined #zope3-dev09:45
*** quodt_ has joined #zope3-dev09:47
*** andycat has quit IRC09:48
*** goschtl_ has joined #zope3-dev09:49
*** quodt_ has quit IRC09:50
*** quodt_ has joined #zope3-dev09:50
*** jukart_ has joined #zope3-dev09:50
*** jukart has quit IRC09:51
*** pcardune has quit IRC09:54
*** quodt has quit IRC09:55
*** davisagli has left #zope3-dev09:56
*** goschtl__ has joined #zope3-dev09:56
*** quodt has joined #zope3-dev09:57
*** goschtl___ has joined #zope3-dev10:00
*** mgedmin has joined #zope3-dev10:00
*** goschtl has quit IRC10:03
*** goschtl has joined #zope3-dev10:06
*** quodt_ has quit IRC10:06
*** dunny has joined #zope3-dev10:09
*** harobed has joined #zope3-dev10:10
*** goschtl_ has quit IRC10:10
*** goschtl_ has joined #zope3-dev10:10
*** goschtl__ has quit IRC10:17
*** stub has quit IRC10:17
*** goschtl___ has quit IRC10:22
*** jpcw has joined #zope3-dev10:25
*** goschtl has quit IRC10:27
*** iham has joined #zope3-dev10:33
*** MJ has joined #zope3-dev10:39
*** goschtl has joined #zope3-dev10:43
*** goschtl_ has quit IRC10:48
*** pelle_ has joined #zope3-dev10:52
*** junkafarian has joined #zope3-dev11:02
*** goschtl_ has joined #zope3-dev11:13
*** fRiSi has joined #zope3-dev11:13
*** andycat has joined #zope3-dev11:16
*** goschtl has quit IRC11:24
*** bigkevmcd has quit IRC11:25
*** bigkevmcd has joined #zope3-dev11:27
*** goschtl has joined #zope3-dev11:29
*** bigkevmcd has quit IRC11:30
*** bigkevmcd has joined #zope3-dev11:33
*** greenman has joined #zope3-dev11:36
*** pelle__ has joined #zope3-dev11:43
*** goschtl__ has joined #zope3-dev11:45
*** goschtl_ has quit IRC11:45
*** pelle_ has quit IRC11:48
*** goschtl_ has joined #zope3-dev11:49
*** pelle__ has quit IRC11:53
*** goschtl___ has joined #zope3-dev11:54
*** yotaff has joined #zope3-dev11:55
*** goschtl has quit IRC12:00
*** goschtl has joined #zope3-dev12:00
*** __mac__ has joined #zope3-dev12:01
*** romanofski has quit IRC12:04
*** goschtl__ has quit IRC12:06
*** goschtl__ has joined #zope3-dev12:08
*** goschtl_ has quit IRC12:10
*** goschtl_ has joined #zope3-dev12:15
*** goschtl___ has quit IRC12:16
*** goschtl has quit IRC12:21
*** kaeru has quit IRC12:24
*** kaeru has joined #zope3-dev12:24
*** stub has joined #zope3-dev12:28
*** goschtl__ has quit IRC12:31
*** stub has joined #zope3-dev12:33
*** pelle_ has joined #zope3-dev12:39
*** tarek has joined #zope3-dev12:40
*** jhauser has quit IRC12:58
*** yvl has quit IRC13:08
*** jayaraj has joined #zope3-dev13:27
*** mkerrin has joined #zope3-dev13:40
*** tarek has quit IRC13:52
*** tarek has joined #zope3-dev14:01
*** alga has joined #zope3-dev14:14
*** brandon_rhodes has joined #zope3-dev14:18
*** pelle_ has quit IRC14:23
*** nyo has joined #zope3-dev14:31
*** pelle_ has joined #zope3-dev14:31
*** ignas has joined #zope3-dev14:35
*** nyo has quit IRC14:38
*** nyo has joined #zope3-dev14:39
*** goschtl has joined #zope3-dev14:42
*** sree_ has joined #zope3-dev14:44
*** El_Rolando has joined #zope3-dev14:44
sree_hi one of our zeo instance is freezing, the culprit seems to be the thread "File "/home/plone32/Plone/Zope-2.10.7-final-py2.4/lib/python/ZEO/zrpc/", line 63, in client_loop14:45
sree_    r, w, e =, w, e, client_timeout)14:45
sree_Unable to understand the reason though, please advise14:46
*** nyo has quit IRC14:47
*** nyo has joined #zope3-dev14:51
bigkevmcdsree_: You probably want #plone14:51
*** regebro has joined #zope3-dev14:51
bigkevmcdbut, it looks unlikely to be the culprit, something's causing the selects to hang14:51
*** goschtl_ has quit IRC14:58
sree_bigkevmcd: thanks for the help, but for the last 20 minuts that thread is stuck in that line, also I posted it here as it looked linke a ZEO zrpc error15:01
*** acsr has joined #zope3-dev15:07
*** acsr has joined #zope3-dev15:07
*** MrTopf has joined #zope3-dev15:08
*** MrTopf has quit IRC15:10
*** MrTopf has joined #zope3-dev15:11
*** iham has quit IRC15:11
*** benji has joined #zope3-dev15:12
*** jayaraj has quit IRC15:21
*** greenman has quit IRC15:23
*** cshenton has joined #zope3-dev15:27
*** menesis has joined #zope3-dev15:28
*** redir has joined #zope3-dev15:32
*** basti__ has quit IRC15:37
*** basti__ has joined #zope3-dev15:37
*** lucielejard has joined #zope3-dev15:38
mgedminsree_: looks like the ZEO server is down, no?15:40
sree_mgedmin: Out of 4 threads 3 threads as working normally and responding to requests..15:45
sree_mgedmin: the last thread is stuck at this line15:46
mgedminhave you tried strace?15:46
mgedminwhat's the value of client_timeout?15:46
*** vimes656 has quit IRC15:46
mgedminis it sitting there, or is it looping and calling select repeatedly?15:46
sree_mgedmin: how will i figure that out?15:47
mgedmincan strace be limited to a single thread?15:48
*** redir has quit IRC15:50
sree_mgedmin: futex(0xc51d0a0, FUTEX_WAIT, 0, NULL)   = -1 EAGAIN (Resource temporarily unavailable)15:56
sree_the above line in being repeatedly being shown15:56
mgedminand only that line?15:58
mgedminI wonder if that's the GIL?15:58
mgedminor some libc internal thing for thread synchronisation?15:59
*** vaab has joined #zope3-dev15:59
*** jamur2 has joined #zope3-dev16:00
vaabHi, was wondering if there were known compatibility problems between kss.core and last zope3 zope.* packages ?16:02
* mgedmin does not know enough about the new linux threads implementation (nptl?) and futexes16:02
*** lurkymclurkleton has joined #zope3-dev16:02
*** stub has quit IRC16:03
Theuni1mgedmin: i'm not an expert myself but I saw this and that. What's you question?16:03
mgedminit's sree_'s question, actually16:03
mgedminhis zope is stuck waiting on select in zeo/ in one of 4 threads16:03
mgedminstrace shows futext() = -EAGAIN repeated over and over16:03
Theuni1Yeah, I've seen that. My understanding is that that's fine.16:05
Theuni1The futexes are faster but called more often and I think they're a replacement for some slower mutex implementation.16:05
sree_Theunil:  but that thread is freezing the instance16:05
Theuni1oh ah there.16:05
Theuni1Let me scroll back a bit.16:05
mgedminit's one, not ell at the end of theuni's nickname ;)16:05
mgedminmy font distinguishes them16:06
*** Theuni1 is now known as theuni116:06
*** J1m has joined #zope3-dev16:06
theuni1somebody else registered my (registered) nickname16:06
mgedmindid you let it lapse?16:07
*** vimes656 has joined #zope3-dev16:07
theuni1No idea. My client is supposed to sign in automatically.16:07
theuni1Maybe my client lapsed.16:07
theuni1back to that hang16:07
theuni1sree_: how did you find out it's exactly that one thread producing those futex() calls?16:09
sree_i ran strace with -p and scanned the process when zope have no other active thread16:09
*** baijum has joined #zope3-dev16:10
theuni1sree_: if you restart the process - can you make it hang again?16:11
sree_yes, it hangs on the same line after some time and will spin till i restart the zeo client16:12
theuni1K. Hmm. Can't think of anything specific to do there. I'd try to go gathering data whats happening in the code around it by maybe pdbing or logging data16:13
sree_theunil: strace showed this line also "select(48, [3 8 14 16 17 18 19 20 21 22 23 25 28 30 32 33 47], [17], [3 8 14 16 17 18 19 20 21 22 23 25 28 30 32 33 47], {30, 0}) = 1 (out [17], left {30, 0}):16:13
*** kursor has quit IRC16:15
*** dunny has quit IRC16:23
*** sp0cksbeard has joined #zope3-dev16:29
*** sp0cksbeard has left #zope3-dev16:29
*** redir has joined #zope3-dev16:30
*** aaronv has joined #zope3-dev16:32
*** andycat has quit IRC16:37
*** rocky has joined #zope3-dev16:37
*** malthe has quit IRC16:38
*** HerrTopf has joined #zope3-dev16:44
*** yvl has joined #zope3-dev16:53
*** sree_ has quit IRC16:54
*** fRiSi_ has joined #zope3-dev16:58
*** alecm has joined #zope3-dev16:58
*** fRiSi_ has quit IRC16:58
*** fRiSi_ has joined #zope3-dev16:59
*** MrTopf has quit IRC16:59
*** __mac__ has quit IRC17:00
*** sunoano has quit IRC17:01
*** mintsauce has joined #zope3-dev17:02
*** vimes656 has quit IRC17:03
mintsauceI have a two buildout .cfg files, one for live, one for dev. I'd like to customise my error messages, via a skin zcml on the live server, but not the local server. Whats the syntax for including a zcml file in the cfg file?17:04
mgedminyou're specifying the zope.conf contents in your buildout.cfg, right?17:05
mgedminuse different site-definition directives for those two sections17:05
mgedminhave one include the other and override some things, or something like that17:05
mintsauceWhat about <include files="appname/folder/custom.zcml" /> in one cfg, but not in the other?17:07
*** fRiSi has quit IRC17:10
*** MJ has quit IRC17:12
mintsaucemgedmin: Yup the different cfg files write different site.zcml files - but im not sure of the actual syntax for calling a skin zcml from that location ...17:13
mgedmin<include package="" file="filename/relative/to/that/package.zcml" />17:14
*** alecm has quit IRC17:18
*** redir_ has joined #zope3-dev17:23
mintsaucemgedmin: I was slightly wrong about the number of buildout files I have. I have live, dev and base. Base contains all of the settings that are common to both. Including site.zcml settings. How would I append details to the site zcml via the live/dev files?17:30
mintsauceI had a quick go, but ended up overwriting everythong from base.cfg17:31
mgedminyou can't; use different site.zcml files17:31
*** redir has quit IRC17:31
mgedminor do you mean you want to inherit the zope.conf but override just a single option?17:31
mintsauceBut can't I generate different site.zml files?17:31
mgedminI don't know what zc.buildout recipe you use, and I don't understand any of them17:31
mgedminthey're all big and scary with pointy bits sticking out17:32
mintsauceI think theres an easy way round it, they each have a 'extends = base.cfg' setting - ill just duplicate that as base-custom.cfg and add the extra string.17:33
mintsauceAint pretty, but will work for now.17:33
*** mcdonc has joined #zope3-dev17:34
*** iham has joined #zope3-dev17:36
*** rocky has quit IRC17:47
*** mintsauce has quit IRC17:47
*** nathany has joined #zope3-dev17:48
*** goschtl has left #zope3-dev17:51
*** srichter has quit IRC17:53
*** basti__ has quit IRC17:54
*** srichter has joined #zope3-dev17:56
*** allisterb_ has joined #zope3-dev18:03
*** rocky has joined #zope3-dev18:04
*** alecm has joined #zope3-dev18:12
*** baijum has quit IRC18:16
*** __mac__ has joined #zope3-dev18:16
*** baijum has joined #zope3-dev18:18
*** ignas has quit IRC18:20
*** allisterb has quit IRC18:21
*** tarek has quit IRC18:32
*** srichter has quit IRC18:34
*** srichter has joined #zope3-dev18:34
*** cshenton has quit IRC18:36
*** cshenton has joined #zope3-dev18:36
*** El_Rolando has quit IRC18:39
*** davisagli has joined #zope3-dev18:40
*** jukart_ has quit IRC18:48
*** __mac__ has quit IRC18:49
*** JaRoel|4D has quit IRC18:51
*** davisagli has left #zope3-dev18:54
*** ThomasKarlRichte has joined #zope3-dev18:57
*** baijum has quit IRC18:57
*** quodt has quit IRC18:58
*** srichter has quit IRC19:00
*** agroszer has joined #zope3-dev19:03
*** zagy has quit IRC19:03
*** junkafarian_ has joined #zope3-dev19:14
*** srichter has joined #zope3-dev19:17
*** ThomasKarlRichte has quit IRC19:19
*** davisagli has joined #zope3-dev19:23
*** harobed has quit IRC19:24
*** jukart has joined #zope3-dev19:28
*** junkafarian has quit IRC19:29
*** faassen has joined #zope3-dev19:36
*** iham has quit IRC19:41
*** JaRoel|4D has joined #zope3-dev19:43
*** runyaga_ has joined #zope3-dev19:44
*** zagy has joined #zope3-dev19:45
*** alecm has quit IRC19:50
*** harobed has joined #zope3-dev19:50
*** alecm has joined #zope3-dev19:50
*** iham has joined #zope3-dev20:00
*** harobed has quit IRC20:01
*** runyaga has quit IRC20:01
*** nyo has quit IRC20:02
*** iham has quit IRC20:06
*** jukart has quit IRC20:18
*** redir_ is now known as redir20:22
*** HerrTopf has quit IRC20:27
*** MrTopf has joined #zope3-dev20:28
*** MrTopf has quit IRC20:30
*** sm has quit IRC20:43
*** afd_ has joined #zope3-dev20:45
*** jpcw has left #zope3-dev20:49
*** ktwilight_ has joined #zope3-dev20:56
*** jukart has joined #zope3-dev20:57
*** jukart has quit IRC21:01
*** mkerrin has quit IRC21:05
*** menesis has quit IRC21:07
*** mgedmin has quit IRC21:08
*** ktwilight has quit IRC21:09
*** fRiSi_ has quit IRC21:12
*** sunoano has joined #zope3-dev21:17
sawdogAny EU legals interested in doing a 6mos. contrating gig in London?  Zope2/3 & Plone (brely - but rememants of archetypes)21:34
*** allisterb_ has quit IRC21:49
*** agroszer has quit IRC21:56
*** iham has joined #zope3-dev22:02
*** iham has quit IRC22:08
*** afd_ has quit IRC22:08
*** redir has quit IRC22:11
*** markusleist has quit IRC22:13
*** redir has joined #zope3-dev22:13
*** sunoano has quit IRC22:14
*** sunoano has joined #zope3-dev22:16
*** mgedmin has joined #zope3-dev22:18
*** junkafarian_ has quit IRC22:32
*** harobed has joined #zope3-dev22:41
*** davisagli_ has joined #zope3-dev22:49
*** lurkymclurkleton has quit IRC22:49
*** sm has joined #zope3-dev22:49
*** lurkymclurkleton has joined #zope3-dev22:51
*** tarek has joined #zope3-dev22:54
*** markusleist has joined #zope3-dev22:56
*** mgedmin has quit IRC22:58
*** iham has joined #zope3-dev23:00
*** redir has quit IRC23:02
*** redir has joined #zope3-dev23:03
*** iham has quit IRC23:05
*** davisagli has quit IRC23:07
*** alecm has quit IRC23:11
*** faassen has quit IRC23:14
*** dunny has joined #zope3-dev23:14
*** junkafarian has joined #zope3-dev23:16
*** greenman has joined #zope3-dev23:17
*** Drogo has joined #zope3-dev23:23
*** Drogo has joined #zope3-dev23:24
*** tarek has quit IRC23:27
*** alga has quit IRC23:27
*** harobed has quit IRC23:29
*** acsr_ has joined #zope3-dev23:34
*** alga has joined #zope3-dev23:50
*** acsr has quit IRC23:51
*** DrogoNevets has quit IRC23:51
*** srichter has quit IRC23:51
*** harobed has joined #zope3-dev23:55

Generated by 2.15.1 by Marius Gedminas - find it at!