IRC log of #zope3-dev for Saturday, 2008-03-15

*** borax has joined #zope3-dev00:04
*** ignas has joined #zope3-dev00:04
boraxhi,00:04
boraxI need help about using z3c.form and z3c.formui packages. How can I override "div-form.pt" template provided by "z3c.formui" package ?00:06
*** benji has quit IRC00:06
*** J1m has quit IRC00:08
*** alga has joined #zope3-dev00:13
*** jodok has quit IRC00:20
*** mweichert has quit IRC00:23
*** J1m has joined #zope3-dev00:31
*** J1m has quit IRC00:32
*** RaFromBRC_ has joined #zope3-dev00:40
*** RaFromBRC has quit IRC00:40
srichterborax: what do you want to override?00:40
boraxsrichter: I'd like to modify the way a few divs are handled, for example error messages00:42
srichterborax: you can simply register your own template in your custom layer00:43
srichterborax: since your layer will be more specific than the DivFormLayer, yours will be picked up00:43
boraxsrichter: that's what I'm trying to do... But it doesn't work...!00:43
*** d2m has quit IRC00:44
srichterhwo does your ZCML look like?00:44
boraxsrichter: <z3c:template for="z3c.form.interfaces.IForm" template="mydiv-form.pt" layer=".IMyTestLayer" />00:45
srichterah, you need to register for IInputForm00:46
srichterthe reason is in the adapter registry00:46
srichterthe original template is registered for (IInputForm, IDivFormLayer)00:47
srichteryours is registered for (IForm, IMyTestLayer)00:47
srichterIInputForm is more specific than IForm00:47
srichterso it does nto even need to discriminate against the layer00:47
boraxsrichter: IMyTestLayer is a subclass of z3c.form.interfaces.IFormLayer and z3c.pagelet.layer.IPageletBrowserLayer00:48
srichterborax: that's fine00:49
boraxsrichter: I'm also trying to use z3c.pagelet and z3c.layout...00:49
*** natea_ has quit IRC00:49
srichterborax: your problem is the IForm declaration00:49
srichterIForm is more general than IInputForm. so the adapter specific to IInputForm wins00:49
srichterit does nto even look at the layer00:49
boraxsrichter: just tryed with <z3c.template for="z3c.form.interfaces.IInputForm"... /> It doesn't work !00:50
srichteryour form is an input form, right?00:50
boraxsrichter: my form is an edit form (derived from z3c.formui.form.EditForm)00:51
srichterthen that's ok00:52
srichterI would suggest putting a pdb into your render method00:52
srichterand check what interfaces are provided by the form and by the request00:52
srichterI would also try to register the template directly for your form class, just to make sure it should be picked up00:53
boraxsrichter: I tried to declare the template for the form class instead of the interface. It works !00:54
srichterok, so we are getting closer then00:54
boraxsrichter: so the problem is certainly in the form interfaces...00:54
srichterso now we know the registration is correct and is being picked up00:55
srichterI am very surprised that switching to IInputForm did not work00:56
srichterI am 90% sure this should have worked :-)00:57
srichterbtw, the alternative, of course, would be for your layer not to derive from DivFormLayer00:57
boraxsrichter: I just switched from IInputForm to IEditForm, and now it works...00:57
srichterI bet you that IEditForm is more specific than IInputForm00:58
srichtermmh, the more I think about it the more I believe that you simply do not want to inherit from DivFormLayer00:58
*** J1m has joined #zope3-dev00:59
boraxsrichter: can I think that the only benefit of inheriting from IDivFormLayer is to automatically have this div-based template, and so if my problem is to override this template it doen't make any sense to inherit from it ??01:02
srichterborax: exactly01:02
srichterborax: btw, are you Thierry?01:03
boraxsrichter: yes !01:03
srichterborax: could you answer your own zope3-users mail onc ewe are done? :-)01:03
boraxsrichter: of course ! I just tried to make my skin inherit from z3c.formui.interfaces.IFormUILayer instead if IDivFormLayer ; registering the template for IInputForm now make it work...01:05
*** mgedmin has quit IRC01:06
srichterborax: cool01:06
boraxsrichter: I think everything is OK now ; many thanks for your help, I'm going to reply to my mail :-)01:07
srichtergreat! :-)01:07
boraxMany thanks. Bye, it's time to sleep in France...01:09
srichtergood night01:10
*** pelle_ has quit IRC01:26
*** cr3 has quit IRC01:42
*** RaFromBRC_ has quit IRC01:53
*** philiKON_ has quit IRC02:10
*** ignas has quit IRC02:17
*** salfield has joined #zope3-dev02:30
*** alga has quit IRC02:33
*** J1m has quit IRC02:46
*** danielblackburn has joined #zope3-dev02:57
*** norro has quit IRC03:01
*** tarek has quit IRC03:01
*** b52laptop has quit IRC03:15
*** danielblackburn has quit IRC03:29
*** tarek has joined #zope3-dev03:32
*** tarek has quit IRC03:36
*** edgordon_ has joined #zope3-dev03:37
*** edgordon__ has joined #zope3-dev03:42
*** alecm has quit IRC03:44
*** edgordon has quit IRC03:52
*** edgordon_ has quit IRC03:58
*** benji has joined #zope3-dev04:12
*** pcardune has joined #zope3-dev04:23
*** derek|home has joined #zope3-dev04:37
*** alecm has joined #zope3-dev04:50
*** alecm has quit IRC04:54
*** derek|home has quit IRC05:01
*** pcardune has quit IRC05:02
*** sm has quit IRC05:10
*** kev__ has quit IRC05:14
*** niemeyer has quit IRC05:23
*** natea_ has joined #zope3-dev05:30
*** natea_ has quit IRC05:33
*** natea_ has joined #zope3-dev05:34
*** pcardune has joined #zope3-dev06:15
*** pcardune_ has joined #zope3-dev06:56
*** pcardune has quit IRC06:56
*** pcardune_ has quit IRC06:56
*** pcardune has joined #zope3-dev06:57
*** pcardune has quit IRC06:58
*** pcardune has joined #zope3-dev06:58
*** pcardune has quit IRC06:59
*** projekt01 has joined #zope3-dev06:59
*** pcardune_ has joined #zope3-dev06:59
*** sm has joined #zope3-dev07:09
*** pcardune_ has quit IRC07:16
*** afd_ has joined #zope3-dev07:41
*** philiKON has joined #zope3-dev08:55
*** Jell-O-Fishi has quit IRC09:03
*** projekt01 has quit IRC09:09
*** d2m has joined #zope3-dev09:16
*** sm has quit IRC09:17
*** afd_ has quit IRC09:29
*** tarek has joined #zope3-dev09:41
*** edgordon__ has quit IRC10:30
*** reco has quit IRC10:38
*** yvl has joined #zope3-dev10:52
*** markusleist has joined #zope3-dev11:05
*** jodok has joined #zope3-dev11:23
*** ccomb has joined #zope3-dev11:25
*** norro has joined #zope3-dev11:43
*** menesis has joined #zope3-dev11:46
*** malthe has joined #zope3-dev12:07
*** zagy has joined #zope3-dev12:34
*** yvl has quit IRC12:51
*** yvl has joined #zope3-dev12:53
*** dunny has quit IRC12:58
*** johbo has joined #zope3-dev13:05
*** bigkevmcd has quit IRC13:51
*** stub has joined #zope3-dev14:14
*** J1m has joined #zope3-dev14:27
*** edgordon has joined #zope3-dev14:38
*** romanofski has joined #zope3-dev14:58
*** zagy has quit IRC15:01
*** derek|home has joined #zope3-dev15:15
*** zagy has joined #zope3-dev15:18
*** stub has quit IRC15:31
*** zagy has quit IRC15:39
*** b52laptop has joined #zope3-dev15:45
*** zagy has joined #zope3-dev15:46
*** derek|home has quit IRC15:49
*** natea_ has quit IRC16:02
*** regebro has joined #zope3-dev16:03
*** pcardune has joined #zope3-dev16:05
*** J1m has quit IRC16:11
*** projekt01 has joined #zope3-dev16:23
*** alga has joined #zope3-dev16:27
*** ignas has joined #zope3-dev16:28
*** ignas has quit IRC16:28
*** mgedmin has joined #zope3-dev16:33
*** srichter has quit IRC16:34
*** srichter has joined #zope3-dev16:38
*** ChanServ sets mode: +o srichter16:38
*** ignas has joined #zope3-dev16:44
*** J1m has joined #zope3-dev16:48
*** J1m has quit IRC16:49
*** regebro has quit IRC16:53
*** pcardune has quit IRC17:01
*** pcardune has joined #zope3-dev17:02
*** salfield has quit IRC17:04
*** danielblackburn has joined #zope3-dev17:11
Theunisrichter: ping17:15
srichterTheuni: pong17:16
pcarduneTheuni: do you mind if I work on gocept.bsquare (setup.py... buildout scripts... etc?)17:23
*** pcardune_ has joined #zope3-dev17:33
*** pcardune has quit IRC17:34
*** jodok has quit IRC17:35
*** pcardune_ has quit IRC17:40
*** quodt has joined #zope3-dev17:41
*** hazmat has joined #zope3-dev17:43
*** ChanServ sets mode: +o hazmat17:43
*** danielblackburn has quit IRC17:44
*** hazmat has quit IRC17:44
*** rmarianski has joined #zope3-dev17:53
*** ignas has quit IRC17:58
*** ignas has joined #zope3-dev18:07
*** yvl has quit IRC18:16
*** pcardune has joined #zope3-dev18:24
*** J1m has joined #zope3-dev18:28
pcarduneTheuni: do you mind if I work on gocept.bsquare (setup.py... buildout scripts... etc?)18:31
*** CSWookie_ is now known as CSWookie18:47
*** projekt01 has quit IRC18:48
*** CSWookie is now known as CSWookie_18:48
*** afd_ has joined #zope3-dev18:50
*** danielblackburn has joined #zope3-dev18:52
*** hazmat has joined #zope3-dev18:54
*** ChanServ sets mode: +o hazmat18:54
*** CSWookie_ is now known as CSWookie18:55
*** danielblackburn has quit IRC18:58
*** hazmat has quit IRC19:02
*** CSWookie is now known as CSWookie_19:06
*** lisppaste6 has quit IRC19:06
*** hazmat has joined #zope3-dev19:08
*** ChanServ sets mode: +o hazmat19:08
*** CSWookie_ has left #zope3-dev19:08
*** rmarianski has quit IRC19:08
*** lisppaste6 has joined #zope3-dev19:20
*** ignas has quit IRC19:26
*** hazmat has quit IRC19:40
*** pcardune has quit IRC19:49
* mgedmin is looking for a good reference for the old ZEO bug: every object load entails a 1ms timeout, which the OS sometimes rounds up to 10ms19:51
*** J1m has quit IRC19:53
mgedminah, here it is: http://mail.zope.org/pipermail/zodb-dev/2007-March/010846.html19:53
* mgedmin is now looking for the checkin that fixed the bug19:55
mgedminZODB's HISTORY.txt doesn't mention it19:57
*** rmarianski has joined #zope3-dev19:58
*** J1m has joined #zope3-dev19:59
afd_mgedmin: I'd be interested also in what you find, I've seen some servers that display this behaviour20:01
mgedminaha!  rev 7387120:01
mgedminhttp://svn.zope.org/ZODB/trunk/?rev=73871&view=rev20:02
afd_would this affect the zeo server or the clients?20:02
mgedmingood question20:03
mgedminI'd be happy to have this fix backported to the ZODB 3.6 branch20:03
*** rmarianski has quit IRC20:11
mgedminwhee, ZEO tests fail in that branch20:14
mgedminlooks like inconsistent svn:externals in the zope 3.2 branch20:16
*** hazmat has joined #zope3-dev20:17
*** ChanServ sets mode: +o hazmat20:17
mgedminno, looks like I did an svn up somewhere where I shouldn't have done it20:17
mgedminsvn is baaaad20:17
*** danielblackburn has joined #zope3-dev20:23
mgedminafd_: looks like it affects both the client and the server20:25
*** ignas has joined #zope3-dev20:26
*** ccomb has quit IRC20:27
*** menesis has quit IRC20:27
mgedminhey, the fix *is* backported to the 3.6 branch20:28
mgedminhey *I* backported it *last year*20:28
mgedminin rev 7396620:28
mgedminit's just that zope 3.2 has svn:externals to an older version of the zodb 3.2 branch20:28
*** derek|home has joined #zope3-dev20:30
*** srichter has quit IRC20:31
*** sunew has joined #zope3-dev20:34
*** J1m has quit IRC20:37
*** hazmat has quit IRC20:39
mgedminTheuni: remember http://svn.zope.org/ZODB/?rev=76435&view=rev ?20:39
mgedminthe bug number in the commit message seems to be wrong20:39
mgedmincan you help me find the correct one>?20:39
*** johbo_ has joined #zope3-dev20:45
*** dunny has joined #zope3-dev20:51
*** ccomb has joined #zope3-dev20:56
*** hazmat has joined #zope3-dev21:00
*** ChanServ sets mode: +o hazmat21:00
*** johbo has quit IRC21:02
mgedminyay, request processing went down from 5 minutes to 17 seconds after the ZEO update21:06
afd_mgedmin: what version was ZEO?21:07
afd_3.2?21:07
mgedminit was ZODB 3.6.021:07
mgedminnow it's ZODB 3.6.321:07
afd_ok21:07
*** danielblackburn has left #zope3-dev21:07
afd_thanks :)21:07
* mgedmin updated Zope 3.2 branch in svn to pull in ZODB 3.6.3 via svn:externals21:07
Theunimgedmin: gah. sorry. no memory. :)21:18
mgedminbut there was a bug in launchpad?21:19
mgedminwas it in zodb or in zope2?21:19
mgedmin(or even in zope3)?21:19
Theuniprobably yes :)21:20
mgedminhttps://bugs.launchpad.net/zodb/+bug/113923 ?21:20
*** hazmat has quit IRC21:21
mgedminthe changelog says 113932, which is "Feisty doesn't start"21:21
mgedminlooks like this is it21:21
Theunimgedmin: sounds right21:21
Theunimgedmin: heh. i think feisty doesn't use ZODB.21:22
*** ignas has quit IRC21:22
*** mcdonc has joined #zope3-dev21:22
*** afd_ has quit IRC21:24
* mgedmin fixes bug numbers21:25
*** norro_ has joined #zope3-dev21:25
*** pcardune has joined #zope3-dev21:31
*** mgedmin has quit IRC21:31
Theuniwow. this talk is good.21:37
Theunibrandon shows the component architecture off and i think he got the story really good.21:38
pcarduneTheuni: which talk are you in?21:39
Theunigrok21:39
Theunihe mainly talked about structuring your code well. he came from "how to test".21:39
pcarduneoh21:39
Theuniwent over to the gang of four's adapter pattern, introduced the CA and mentioned grok21:40
Theunii think this was really good for general python21:40
*** mcdonc has quit IRC21:42
*** pcardune has quit IRC21:46
*** mcdonc has joined #zope3-dev21:53
*** pcardune has joined #zope3-dev22:05
*** d2m has quit IRC22:06
*** mcdonc has quit IRC22:08
*** quodt has quit IRC22:13
*** rmarianski has joined #zope3-dev22:17
Theuni... was really good for advocating the CA to general python users22:21
*** mcdonc has joined #zope3-dev22:28
*** pcardune has quit IRC22:35
*** pcardune has joined #zope3-dev22:35
*** whit has joined #zope3-dev22:40
*** zagy has quit IRC22:42
*** pcardune has quit IRC22:53
*** pcardune has joined #zope3-dev22:57
*** hazmat has joined #zope3-dev23:07
*** ChanServ sets mode: +o hazmat23:07
*** mcdonc has quit IRC23:18
*** mcdonc has joined #zope3-dev23:33
*** alga has quit IRC23:47
*** mcdonc has quit IRC23:49
*** pcardune has quit IRC23:54
*** pcardune has joined #zope3-dev23:55
*** ktwilight has joined #zope3-dev23:58

Generated by irclog2html.py 2.15.1 by Marius Gedminas - find it at mg.pov.lt!