*** borax has joined #zope3-dev | 00:04 | |
*** ignas has joined #zope3-dev | 00:04 | |
borax | hi, | 00:04 |
---|---|---|
borax | I 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 IRC | 00:06 | |
*** J1m has quit IRC | 00:08 | |
*** alga has joined #zope3-dev | 00:13 | |
*** jodok has quit IRC | 00:20 | |
*** mweichert has quit IRC | 00:23 | |
*** J1m has joined #zope3-dev | 00:31 | |
*** J1m has quit IRC | 00:32 | |
*** RaFromBRC_ has joined #zope3-dev | 00:40 | |
*** RaFromBRC has quit IRC | 00:40 | |
srichter | borax: what do you want to override? | 00:40 |
borax | srichter: I'd like to modify the way a few divs are handled, for example error messages | 00:42 |
srichter | borax: you can simply register your own template in your custom layer | 00:43 |
srichter | borax: since your layer will be more specific than the DivFormLayer, yours will be picked up | 00:43 |
borax | srichter: that's what I'm trying to do... But it doesn't work...! | 00:43 |
*** d2m has quit IRC | 00:44 | |
srichter | hwo does your ZCML look like? | 00:44 |
borax | srichter: <z3c:template for="z3c.form.interfaces.IForm" template="mydiv-form.pt" layer=".IMyTestLayer" /> | 00:45 |
srichter | ah, you need to register for IInputForm | 00:46 |
srichter | the reason is in the adapter registry | 00:46 |
srichter | the original template is registered for (IInputForm, IDivFormLayer) | 00:47 |
srichter | yours is registered for (IForm, IMyTestLayer) | 00:47 |
srichter | IInputForm is more specific than IForm | 00:47 |
srichter | so it does nto even need to discriminate against the layer | 00:47 |
borax | srichter: IMyTestLayer is a subclass of z3c.form.interfaces.IFormLayer and z3c.pagelet.layer.IPageletBrowserLayer | 00:48 |
srichter | borax: that's fine | 00:49 |
borax | srichter: I'm also trying to use z3c.pagelet and z3c.layout... | 00:49 |
*** natea_ has quit IRC | 00:49 | |
srichter | borax: your problem is the IForm declaration | 00:49 |
srichter | IForm is more general than IInputForm. so the adapter specific to IInputForm wins | 00:49 |
srichter | it does nto even look at the layer | 00:49 |
borax | srichter: just tryed with <z3c.template for="z3c.form.interfaces.IInputForm"... /> It doesn't work ! | 00:50 |
srichter | your form is an input form, right? | 00:50 |
borax | srichter: my form is an edit form (derived from z3c.formui.form.EditForm) | 00:51 |
srichter | then that's ok | 00:52 |
srichter | I would suggest putting a pdb into your render method | 00:52 |
srichter | and check what interfaces are provided by the form and by the request | 00:52 |
srichter | I would also try to register the template directly for your form class, just to make sure it should be picked up | 00:53 |
borax | srichter: I tried to declare the template for the form class instead of the interface. It works ! | 00:54 |
srichter | ok, so we are getting closer then | 00:54 |
borax | srichter: so the problem is certainly in the form interfaces... | 00:54 |
srichter | so now we know the registration is correct and is being picked up | 00:55 |
srichter | I am very surprised that switching to IInputForm did not work | 00:56 |
srichter | I am 90% sure this should have worked :-) | 00:57 |
srichter | btw, the alternative, of course, would be for your layer not to derive from DivFormLayer | 00:57 |
borax | srichter: I just switched from IInputForm to IEditForm, and now it works... | 00:57 |
srichter | I bet you that IEditForm is more specific than IInputForm | 00:58 |
srichter | mmh, the more I think about it the more I believe that you simply do not want to inherit from DivFormLayer | 00:58 |
*** J1m has joined #zope3-dev | 00:59 | |
borax | srichter: 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 |
srichter | borax: exactly | 01:02 |
srichter | borax: btw, are you Thierry? | 01:03 |
borax | srichter: yes ! | 01:03 |
srichter | borax: could you answer your own zope3-users mail onc ewe are done? :-) | 01:03 |
borax | srichter: 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 IRC | 01:06 | |
srichter | borax: cool | 01:06 |
borax | srichter: I think everything is OK now ; many thanks for your help, I'm going to reply to my mail :-) | 01:07 |
srichter | great! :-) | 01:07 |
borax | Many thanks. Bye, it's time to sleep in France... | 01:09 |
srichter | good night | 01:10 |
*** pelle_ has quit IRC | 01:26 | |
*** cr3 has quit IRC | 01:42 | |
*** RaFromBRC_ has quit IRC | 01:53 | |
*** philiKON_ has quit IRC | 02:10 | |
*** ignas has quit IRC | 02:17 | |
*** salfield has joined #zope3-dev | 02:30 | |
*** alga has quit IRC | 02:33 | |
*** J1m has quit IRC | 02:46 | |
*** danielblackburn has joined #zope3-dev | 02:57 | |
*** norro has quit IRC | 03:01 | |
*** tarek has quit IRC | 03:01 | |
*** b52laptop has quit IRC | 03:15 | |
*** danielblackburn has quit IRC | 03:29 | |
*** tarek has joined #zope3-dev | 03:32 | |
*** tarek has quit IRC | 03:36 | |
*** edgordon_ has joined #zope3-dev | 03:37 | |
*** edgordon__ has joined #zope3-dev | 03:42 | |
*** alecm has quit IRC | 03:44 | |
*** edgordon has quit IRC | 03:52 | |
*** edgordon_ has quit IRC | 03:58 | |
*** benji has joined #zope3-dev | 04:12 | |
*** pcardune has joined #zope3-dev | 04:23 | |
*** derek|home has joined #zope3-dev | 04:37 | |
*** alecm has joined #zope3-dev | 04:50 | |
*** alecm has quit IRC | 04:54 | |
*** derek|home has quit IRC | 05:01 | |
*** pcardune has quit IRC | 05:02 | |
*** sm has quit IRC | 05:10 | |
*** kev__ has quit IRC | 05:14 | |
*** niemeyer has quit IRC | 05:23 | |
*** natea_ has joined #zope3-dev | 05:30 | |
*** natea_ has quit IRC | 05:33 | |
*** natea_ has joined #zope3-dev | 05:34 | |
*** pcardune has joined #zope3-dev | 06:15 | |
*** pcardune_ has joined #zope3-dev | 06:56 | |
*** pcardune has quit IRC | 06:56 | |
*** pcardune_ has quit IRC | 06:56 | |
*** pcardune has joined #zope3-dev | 06:57 | |
*** pcardune has quit IRC | 06:58 | |
*** pcardune has joined #zope3-dev | 06:58 | |
*** pcardune has quit IRC | 06:59 | |
*** projekt01 has joined #zope3-dev | 06:59 | |
*** pcardune_ has joined #zope3-dev | 06:59 | |
*** sm has joined #zope3-dev | 07:09 | |
*** pcardune_ has quit IRC | 07:16 | |
*** afd_ has joined #zope3-dev | 07:41 | |
*** philiKON has joined #zope3-dev | 08:55 | |
*** Jell-O-Fishi has quit IRC | 09:03 | |
*** projekt01 has quit IRC | 09:09 | |
*** d2m has joined #zope3-dev | 09:16 | |
*** sm has quit IRC | 09:17 | |
*** afd_ has quit IRC | 09:29 | |
*** tarek has joined #zope3-dev | 09:41 | |
*** edgordon__ has quit IRC | 10:30 | |
*** reco has quit IRC | 10:38 | |
*** yvl has joined #zope3-dev | 10:52 | |
*** markusleist has joined #zope3-dev | 11:05 | |
*** jodok has joined #zope3-dev | 11:23 | |
*** ccomb has joined #zope3-dev | 11:25 | |
*** norro has joined #zope3-dev | 11:43 | |
*** menesis has joined #zope3-dev | 11:46 | |
*** malthe has joined #zope3-dev | 12:07 | |
*** zagy has joined #zope3-dev | 12:34 | |
*** yvl has quit IRC | 12:51 | |
*** yvl has joined #zope3-dev | 12:53 | |
*** dunny has quit IRC | 12:58 | |
*** johbo has joined #zope3-dev | 13:05 | |
*** bigkevmcd has quit IRC | 13:51 | |
*** stub has joined #zope3-dev | 14:14 | |
*** J1m has joined #zope3-dev | 14:27 | |
*** edgordon has joined #zope3-dev | 14:38 | |
*** romanofski has joined #zope3-dev | 14:58 | |
*** zagy has quit IRC | 15:01 | |
*** derek|home has joined #zope3-dev | 15:15 | |
*** zagy has joined #zope3-dev | 15:18 | |
*** stub has quit IRC | 15:31 | |
*** zagy has quit IRC | 15:39 | |
*** b52laptop has joined #zope3-dev | 15:45 | |
*** zagy has joined #zope3-dev | 15:46 | |
*** derek|home has quit IRC | 15:49 | |
*** natea_ has quit IRC | 16:02 | |
*** regebro has joined #zope3-dev | 16:03 | |
*** pcardune has joined #zope3-dev | 16:05 | |
*** J1m has quit IRC | 16:11 | |
*** projekt01 has joined #zope3-dev | 16:23 | |
*** alga has joined #zope3-dev | 16:27 | |
*** ignas has joined #zope3-dev | 16:28 | |
*** ignas has quit IRC | 16:28 | |
*** mgedmin has joined #zope3-dev | 16:33 | |
*** srichter has quit IRC | 16:34 | |
*** srichter has joined #zope3-dev | 16:38 | |
*** ChanServ sets mode: +o srichter | 16:38 | |
*** ignas has joined #zope3-dev | 16:44 | |
*** J1m has joined #zope3-dev | 16:48 | |
*** J1m has quit IRC | 16:49 | |
*** regebro has quit IRC | 16:53 | |
*** pcardune has quit IRC | 17:01 | |
*** pcardune has joined #zope3-dev | 17:02 | |
*** salfield has quit IRC | 17:04 | |
*** danielblackburn has joined #zope3-dev | 17:11 | |
Theuni | srichter: ping | 17:15 |
srichter | Theuni: pong | 17:16 |
pcardune | Theuni: do you mind if I work on gocept.bsquare (setup.py... buildout scripts... etc?) | 17:23 |
*** pcardune_ has joined #zope3-dev | 17:33 | |
*** pcardune has quit IRC | 17:34 | |
*** jodok has quit IRC | 17:35 | |
*** pcardune_ has quit IRC | 17:40 | |
*** quodt has joined #zope3-dev | 17:41 | |
*** hazmat has joined #zope3-dev | 17:43 | |
*** ChanServ sets mode: +o hazmat | 17:43 | |
*** danielblackburn has quit IRC | 17:44 | |
*** hazmat has quit IRC | 17:44 | |
*** rmarianski has joined #zope3-dev | 17:53 | |
*** ignas has quit IRC | 17:58 | |
*** ignas has joined #zope3-dev | 18:07 | |
*** yvl has quit IRC | 18:16 | |
*** pcardune has joined #zope3-dev | 18:24 | |
*** J1m has joined #zope3-dev | 18:28 | |
pcardune | Theuni: do you mind if I work on gocept.bsquare (setup.py... buildout scripts... etc?) | 18:31 |
*** CSWookie_ is now known as CSWookie | 18:47 | |
*** projekt01 has quit IRC | 18:48 | |
*** CSWookie is now known as CSWookie_ | 18:48 | |
*** afd_ has joined #zope3-dev | 18:50 | |
*** danielblackburn has joined #zope3-dev | 18:52 | |
*** hazmat has joined #zope3-dev | 18:54 | |
*** ChanServ sets mode: +o hazmat | 18:54 | |
*** CSWookie_ is now known as CSWookie | 18:55 | |
*** danielblackburn has quit IRC | 18:58 | |
*** hazmat has quit IRC | 19:02 | |
*** CSWookie is now known as CSWookie_ | 19:06 | |
*** lisppaste6 has quit IRC | 19:06 | |
*** hazmat has joined #zope3-dev | 19:08 | |
*** ChanServ sets mode: +o hazmat | 19:08 | |
*** CSWookie_ has left #zope3-dev | 19:08 | |
*** rmarianski has quit IRC | 19:08 | |
*** lisppaste6 has joined #zope3-dev | 19:20 | |
*** ignas has quit IRC | 19:26 | |
*** hazmat has quit IRC | 19:40 | |
*** pcardune has quit IRC | 19: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 10ms | 19:51 | |
*** J1m has quit IRC | 19:53 | |
mgedmin | ah, here it is: http://mail.zope.org/pipermail/zodb-dev/2007-March/010846.html | 19:53 |
* mgedmin is now looking for the checkin that fixed the bug | 19:55 | |
mgedmin | ZODB's HISTORY.txt doesn't mention it | 19:57 |
*** rmarianski has joined #zope3-dev | 19:58 | |
*** J1m has joined #zope3-dev | 19:59 | |
afd_ | mgedmin: I'd be interested also in what you find, I've seen some servers that display this behaviour | 20:01 |
mgedmin | aha! rev 73871 | 20:01 |
mgedmin | http://svn.zope.org/ZODB/trunk/?rev=73871&view=rev | 20:02 |
afd_ | would this affect the zeo server or the clients? | 20:02 |
mgedmin | good question | 20:03 |
mgedmin | I'd be happy to have this fix backported to the ZODB 3.6 branch | 20:03 |
*** rmarianski has quit IRC | 20:11 | |
mgedmin | whee, ZEO tests fail in that branch | 20:14 |
mgedmin | looks like inconsistent svn:externals in the zope 3.2 branch | 20:16 |
*** hazmat has joined #zope3-dev | 20:17 | |
*** ChanServ sets mode: +o hazmat | 20:17 | |
mgedmin | no, looks like I did an svn up somewhere where I shouldn't have done it | 20:17 |
mgedmin | svn is baaaad | 20:17 |
*** danielblackburn has joined #zope3-dev | 20:23 | |
mgedmin | afd_: looks like it affects both the client and the server | 20:25 |
*** ignas has joined #zope3-dev | 20:26 | |
*** ccomb has quit IRC | 20:27 | |
*** menesis has quit IRC | 20:27 | |
mgedmin | hey, the fix *is* backported to the 3.6 branch | 20:28 |
mgedmin | hey *I* backported it *last year* | 20:28 |
mgedmin | in rev 73966 | 20:28 |
mgedmin | it's just that zope 3.2 has svn:externals to an older version of the zodb 3.2 branch | 20:28 |
*** derek|home has joined #zope3-dev | 20:30 | |
*** srichter has quit IRC | 20:31 | |
*** sunew has joined #zope3-dev | 20:34 | |
*** J1m has quit IRC | 20:37 | |
*** hazmat has quit IRC | 20:39 | |
mgedmin | Theuni: remember http://svn.zope.org/ZODB/?rev=76435&view=rev ? | 20:39 |
mgedmin | the bug number in the commit message seems to be wrong | 20:39 |
mgedmin | can you help me find the correct one>? | 20:39 |
*** johbo_ has joined #zope3-dev | 20:45 | |
*** dunny has joined #zope3-dev | 20:51 | |
*** ccomb has joined #zope3-dev | 20:56 | |
*** hazmat has joined #zope3-dev | 21:00 | |
*** ChanServ sets mode: +o hazmat | 21:00 | |
*** johbo has quit IRC | 21:02 | |
mgedmin | yay, request processing went down from 5 minutes to 17 seconds after the ZEO update | 21:06 |
afd_ | mgedmin: what version was ZEO? | 21:07 |
afd_ | 3.2? | 21:07 |
mgedmin | it was ZODB 3.6.0 | 21:07 |
mgedmin | now it's ZODB 3.6.3 | 21:07 |
afd_ | ok | 21:07 |
*** danielblackburn has left #zope3-dev | 21:07 | |
afd_ | thanks :) | 21:07 |
* mgedmin updated Zope 3.2 branch in svn to pull in ZODB 3.6.3 via svn:externals | 21:07 | |
Theuni | mgedmin: gah. sorry. no memory. :) | 21:18 |
mgedmin | but there was a bug in launchpad? | 21:19 |
mgedmin | was it in zodb or in zope2? | 21:19 |
mgedmin | (or even in zope3)? | 21:19 |
Theuni | probably yes :) | 21:20 |
mgedmin | https://bugs.launchpad.net/zodb/+bug/113923 ? | 21:20 |
*** hazmat has quit IRC | 21:21 | |
mgedmin | the changelog says 113932, which is "Feisty doesn't start" | 21:21 |
mgedmin | looks like this is it | 21:21 |
Theuni | mgedmin: sounds right | 21:21 |
Theuni | mgedmin: heh. i think feisty doesn't use ZODB. | 21:22 |
*** ignas has quit IRC | 21:22 | |
*** mcdonc has joined #zope3-dev | 21:22 | |
*** afd_ has quit IRC | 21:24 | |
* mgedmin fixes bug numbers | 21:25 | |
*** norro_ has joined #zope3-dev | 21:25 | |
*** pcardune has joined #zope3-dev | 21:31 | |
*** mgedmin has quit IRC | 21:31 | |
Theuni | wow. this talk is good. | 21:37 |
Theuni | brandon shows the component architecture off and i think he got the story really good. | 21:38 |
pcardune | Theuni: which talk are you in? | 21:39 |
Theuni | grok | 21:39 |
Theuni | he mainly talked about structuring your code well. he came from "how to test". | 21:39 |
pcardune | oh | 21:39 |
Theuni | went over to the gang of four's adapter pattern, introduced the CA and mentioned grok | 21:40 |
Theuni | i think this was really good for general python | 21:40 |
*** mcdonc has quit IRC | 21:42 | |
*** pcardune has quit IRC | 21:46 | |
*** mcdonc has joined #zope3-dev | 21:53 | |
*** pcardune has joined #zope3-dev | 22:05 | |
*** d2m has quit IRC | 22:06 | |
*** mcdonc has quit IRC | 22:08 | |
*** quodt has quit IRC | 22:13 | |
*** rmarianski has joined #zope3-dev | 22:17 | |
Theuni | ... was really good for advocating the CA to general python users | 22:21 |
*** mcdonc has joined #zope3-dev | 22:28 | |
*** pcardune has quit IRC | 22:35 | |
*** pcardune has joined #zope3-dev | 22:35 | |
*** whit has joined #zope3-dev | 22:40 | |
*** zagy has quit IRC | 22:42 | |
*** pcardune has quit IRC | 22:53 | |
*** pcardune has joined #zope3-dev | 22:57 | |
*** hazmat has joined #zope3-dev | 23:07 | |
*** ChanServ sets mode: +o hazmat | 23:07 | |
*** mcdonc has quit IRC | 23:18 | |
*** mcdonc has joined #zope3-dev | 23:33 | |
*** alga has quit IRC | 23:47 | |
*** mcdonc has quit IRC | 23:49 | |
*** pcardune has quit IRC | 23:54 | |
*** pcardune has joined #zope3-dev | 23:55 | |
*** ktwilight has joined #zope3-dev | 23:58 |
Generated by irclog2html.py 2.15.1 by Marius Gedminas - find it at mg.pov.lt!