*** baldtrol has left #zope3-dev | 00:11 | |
*** hazmat has quit IRC | 00:11 | |
slinkP | has anybody noticed test.py doesn't run any tests in src/zope/testing by default? | 00:12 |
---|---|---|
*** sashav has quit IRC | 00:12 | |
*** kamalgill has left #zope3-dev | 00:18 | |
*** rockyburt has joined #zope3-dev | 00:21 | |
*** gumpa has left #zope3-dev | 00:28 | |
*** roym has joined #zope3-dev | 00:38 | |
roym | contentprovider/README.txt suggests that one can use a custom provider to do a 2-phased commit/render. This allows you to control the rendering order. Is it possible to have this and still somehow use a page template for the view? | 00:41 |
roym | The example shows uses a python render() method to generate the view. | 00:42 |
*** srichter has joined #zope3-dev | 00:46 | |
*** srichter has quit IRC | 00:46 | |
*** BjornT_ has joined #zope3-dev | 00:58 | |
*** dobee has quit IRC | 00:59 | |
*** slinkP has left #zope3-dev | 01:03 | |
*** BjornT has quit IRC | 01:15 | |
*** whit has quit IRC | 01:25 | |
*** hazmat has joined #zope3-dev | 01:25 | |
*** roym has quit IRC | 01:32 | |
*** whit has joined #zope3-dev | 01:42 | |
*** natea|away is now known as natea | 01:47 | |
*** TrevorP has quit IRC | 01:54 | |
*** andrew_m has quit IRC | 01:54 | |
*** tonico has quit IRC | 01:54 | |
*** niemeyer has quit IRC | 01:54 | |
*** BjornT_ has quit IRC | 01:54 | |
*** _tarek has quit IRC | 01:54 | |
*** bradb has quit IRC | 01:54 | |
*** whit has quit IRC | 01:54 | |
*** rockyburt has quit IRC | 01:54 | |
*** natea has quit IRC | 01:54 | |
*** sm has quit IRC | 01:54 | |
*** whit has joined #zope3-dev | 01:56 | |
*** BjornT_ has joined #zope3-dev | 01:56 | |
*** rockyburt has joined #zope3-dev | 01:56 | |
*** bradb has joined #zope3-dev | 01:56 | |
*** niemeyer has joined #zope3-dev | 01:56 | |
*** natea has joined #zope3-dev | 01:56 | |
*** sm has joined #zope3-dev | 01:56 | |
*** TrevorP has joined #zope3-dev | 01:56 | |
*** andrew_m has joined #zope3-dev | 01:56 | |
*** _tarek has joined #zope3-dev | 01:56 | |
*** tonico has joined #zope3-dev | 01:56 | |
*** romanofski is now known as rom|zZZZ | 02:01 | |
*** TrevorP has quit IRC | 02:01 | |
*** andrew_m has quit IRC | 02:01 | |
*** tonico has quit IRC | 02:01 | |
*** niemeyer has quit IRC | 02:01 | |
*** BjornT_ has quit IRC | 02:01 | |
*** bradb has quit IRC | 02:01 | |
*** _tarek has quit IRC | 02:01 | |
*** sm has quit IRC | 02:01 | |
*** natea has quit IRC | 02:01 | |
*** rockyburt has quit IRC | 02:01 | |
*** whit has quit IRC | 02:01 | |
*** whit has joined #zope3-dev | 02:03 | |
*** BjornT_ has joined #zope3-dev | 02:03 | |
*** rockyburt has joined #zope3-dev | 02:03 | |
*** bradb has joined #zope3-dev | 02:03 | |
*** niemeyer has joined #zope3-dev | 02:03 | |
*** natea has joined #zope3-dev | 02:03 | |
*** sm has joined #zope3-dev | 02:03 | |
*** TrevorP has joined #zope3-dev | 02:03 | |
*** andrew_m has joined #zope3-dev | 02:03 | |
*** _tarek has joined #zope3-dev | 02:03 | |
*** tonico has joined #zope3-dev | 02:03 | |
*** TrevorP has quit IRC | 02:04 | |
*** andrew_m has quit IRC | 02:04 | |
*** tonico has quit IRC | 02:04 | |
*** niemeyer has quit IRC | 02:04 | |
*** BjornT_ has quit IRC | 02:04 | |
*** bradb has quit IRC | 02:04 | |
*** _tarek has quit IRC | 02:04 | |
*** sm has quit IRC | 02:04 | |
*** natea has quit IRC | 02:04 | |
*** rockyburt has quit IRC | 02:04 | |
*** whit has quit IRC | 02:04 | |
*** whit has joined #zope3-dev | 02:09 | |
*** BjornT_ has joined #zope3-dev | 02:09 | |
*** rockyburt has joined #zope3-dev | 02:09 | |
*** bradb has joined #zope3-dev | 02:09 | |
*** niemeyer has joined #zope3-dev | 02:09 | |
*** natea has joined #zope3-dev | 02:09 | |
*** sm has joined #zope3-dev | 02:09 | |
*** TrevorP has joined #zope3-dev | 02:09 | |
*** andrew_m has joined #zope3-dev | 02:09 | |
*** _tarek has joined #zope3-dev | 02:09 | |
*** tonico has joined #zope3-dev | 02:09 | |
*** BjornT_ has quit IRC | 02:09 | |
*** BjornT has joined #zope3-dev | 02:13 | |
*** kamalgill has joined #zope3-dev | 02:20 | |
*** rockyburt is now known as rockyburt|zzz | 02:40 | |
*** jinty has joined #zope3-dev | 02:54 | |
*** kamalgill has left #zope3-dev | 03:47 | |
*** jinty has quit IRC | 03:49 | |
*** sm has quit IRC | 04:05 | |
*** yota has quit IRC | 04:45 | |
*** BjornT has quit IRC | 05:13 | |
*** rockyburt|zzz has quit IRC | 05:37 | |
*** niemeyer has quit IRC | 06:07 | |
*** deo has quit IRC | 06:43 | |
*** stub has joined #zope3-dev | 07:02 | |
*** yota has joined #zope3-dev | 07:05 | |
*** jinty has joined #zope3-dev | 07:13 | |
*** pcardune has joined #zope3-dev | 07:19 | |
*** stainsby has joined #zope3-dev | 08:02 | |
*** eins has joined #zope3-dev | 08:17 | |
eins | hi | 08:17 |
*** kamalgill has joined #zope3-dev | 08:32 | |
*** sashav has joined #zope3-dev | 09:12 | |
*** dobee has joined #zope3-dev | 09:29 | |
*** rom|zZZZ is now known as romanofski | 09:32 | |
romanofski | moin | 09:33 |
*** hdima has joined #zope3-dev | 09:35 | |
*** natea has quit IRC | 09:39 | |
*** jinty has quit IRC | 09:43 | |
kamalgill | moin | 09:49 |
*** stub has quit IRC | 09:57 | |
*** jinty has joined #zope3-dev | 10:00 | |
*** romanofski has quit IRC | 10:09 | |
*** natea has joined #zope3-dev | 10:12 | |
*** kamalgill has left #zope3-dev | 10:18 | |
*** dobee has quit IRC | 10:19 | |
*** stereo__ has joined #zope3-dev | 10:20 | |
*** hazmat has quit IRC | 10:22 | |
*** dobee has joined #zope3-dev | 10:45 | |
*** MJ has quit IRC | 10:46 | |
*** dlk has joined #zope3-dev | 10:52 | |
*** stereo__ has quit IRC | 11:21 | |
*** oferw has joined #zope3-dev | 11:23 | |
*** natea has quit IRC | 11:40 | |
*** natea has joined #zope3-dev | 11:40 | |
*** romanofski has joined #zope3-dev | 11:42 | |
*** jinty has left #zope3-dev | 11:54 | |
*** jinty has quit IRC | 11:54 | |
*** stereo__ has joined #zope3-dev | 11:55 | |
*** dlk has quit IRC | 12:02 | |
*** MJ has joined #zope3-dev | 12:04 | |
*** Londo_ has joined #zope3-dev | 12:23 | |
*** stereo__ has quit IRC | 12:24 | |
*** _tarek has quit IRC | 12:25 | |
*** tarek has joined #zope3-dev | 12:26 | |
*** alga has joined #zope3-dev | 12:35 | |
*** oferw has quit IRC | 13:02 | |
*** mkerrin has joined #zope3-dev | 13:07 | |
*** mgedmin has joined #zope3-dev | 13:09 | |
*** alga_ has joined #zope3-dev | 13:12 | |
*** alga_ has quit IRC | 13:12 | |
*** pcardune has quit IRC | 13:31 | |
*** d2m has quit IRC | 13:50 | |
*** stainsby has left #zope3-dev | 13:53 | |
*** ignas has joined #zope3-dev | 13:54 | |
*** stub has joined #zope3-dev | 13:55 | |
*** Theuni has joined #zope3-dev | 14:10 | |
*** mgedmin has quit IRC | 14:11 | |
*** mgedmin has joined #zope3-dev | 14:12 | |
*** dunny has quit IRC | 14:26 | |
*** rockyburt has joined #zope3-dev | 14:27 | |
*** dobee has quit IRC | 14:53 | |
*** mgedmin has quit IRC | 15:02 | |
*** sashav has quit IRC | 15:12 | |
*** stub has quit IRC | 15:16 | |
*** alga has quit IRC | 15:18 | |
*** Theuni has quit IRC | 15:30 | |
*** dobee has joined #zope3-dev | 15:31 | |
*** efge has joined #zope3-dev | 15:45 | |
*** zbir has quit IRC | 15:47 | |
*** benji has joined #zope3-dev | 16:11 | |
*** gumpa has joined #zope3-dev | 16:15 | |
*** jinty has joined #zope3-dev | 16:33 | |
*** mgedmin has joined #zope3-dev | 16:55 | |
*** efge has quit IRC | 17:08 | |
*** roym has joined #zope3-dev | 17:09 | |
*** efge has joined #zope3-dev | 17:34 | |
*** d2m has joined #zope3-dev | 17:35 | |
*** gumpa has quit IRC | 17:48 | |
*** hdima has quit IRC | 17:57 | |
*** eins has quit IRC | 18:35 | |
*** hazmat has joined #zope3-dev | 18:50 | |
*** sashav has joined #zope3-dev | 18:55 | |
*** dobee has quit IRC | 19:18 | |
*** MJ has quit IRC | 19:20 | |
*** kamalgill has joined #zope3-dev | 19:21 | |
*** zbir has joined #zope3-dev | 19:37 | |
*** rockyburt has quit IRC | 19:55 | |
*** rockyburt has joined #zope3-dev | 20:03 | |
*** jinty has quit IRC | 20:10 | |
*** sm has joined #zope3-dev | 20:11 | |
*** zbir` has joined #zope3-dev | 20:16 | |
benji | oh no! the attack of the zbir clones! | 20:20 |
*** zbir has quit IRC | 20:23 | |
*** pcardune has joined #zope3-dev | 20:24 | |
*** MJ has joined #zope3-dev | 20:26 | |
*** natea is now known as natea|lunch | 20:39 | |
*** pcardune has quit IRC | 20:47 | |
*** pcardune has joined #zope3-dev | 20:49 | |
*** efge has quit IRC | 21:07 | |
*** ignas has quit IRC | 21:09 | |
*** ignas_ has joined #zope3-dev | 21:09 | |
*** mkerrin has quit IRC | 21:17 | |
*** mkerrin has joined #zope3-dev | 21:17 | |
*** mkerrin has joined #zope3-dev | 21:51 | |
*** gumpa has joined #zope3-dev | 21:58 | |
*** ignas_ has quit IRC | 21:58 | |
*** mkerrin has quit IRC | 22:20 | |
*** kamalgill is now known as kamalunch | 22:22 | |
*** rockyburt has quit IRC | 22:51 | |
*** natea|lunch is now known as natea|away | 23:12 | |
*** natea|away has quit IRC | 23:21 | |
*** natea has joined #zope3-dev | 23:22 | |
*** rockyburt has joined #zope3-dev | 23:24 | |
roym | anyone out there? | 23:30 |
roym | I need a little guidance on modifying contentprovider. | 23:30 |
roym | Basically, I am trying to modify the provider: directive to not call update/render, but to simply return itself, so that I can control the calling of update/render from the zpt pages. | 23:32 |
roym | It seems like a lot of work, and I need to know if I am trying too hard. | 23:32 |
*** zbir` has quit IRC | 23:33 | |
*** projekt01 has joined #zope3-dev | 23:33 | |
roym | roger: can I ask you a quick question about the contentprovider implementation. | 23:34 |
*** sashav has quit IRC | 23:35 | |
*** mgedmin has quit IRC | 23:36 | |
projekt01 | romy, yes sure | 23:37 |
roym | I need a little guidance on modifying contentprovider. | 23:37 |
roym | Basically, I am trying to modify the provider: directive to not call | 23:38 |
roym | update/render, but to simply return itself, so that I can control the | 23:38 |
roym | calling of update/render from the zpt pages. | 23:38 |
roym | It seems like a lot of work, and I need to know if I am trying too hard. | 23:38 |
roym | maybe not modify the existing one, but create a contentprovider2 directive that does this. | 23:38 |
projekt01 | what about the nocall: prefix in tal? | 23:38 |
roym | doesn't seem to work. It still renders it. | 23:39 |
projekt01 | Ok. I see the return is: | 23:40 |
projekt01 | /* ---[ footer ]----------------------------------------------------------- */ | 23:40 |
projekt01 | return provider.render() | 23:40 |
roym | yes | 23:40 |
projekt01 | Why do you need this? | 23:40 |
roym | I need to control update/render in viewletManagers | 23:40 |
roym | for exactly the reasons you outlined in your implementation. | 23:40 |
roym | in TALESProviderImplementation | 23:41 |
roym | sorry TALESProviderExpression | 23:41 |
projekt01 | I don't understand. What do you mean by the reason? | 23:42 |
projekt01 | What do you try to do in TAL whit the result? | 23:42 |
*** natea has quit IRC | 23:43 | |
roym | I have a case of two widgets (each in a different provider), and the rendering of each can only be correct after each has been updated. | 23:43 |
roym | ie: both updates need to happen first, then the renders. | 23:43 |
projekt01 | That's no problem | 23:44 |
roym | hmmm, how would I handle that | 23:44 |
projekt01 | The provider TAL directives calls only the viewlet manager. | 23:44 |
projekt01 | The viewlet manager can collect all viewlets and update them, after that render them. | 23:44 |
projekt01 | We do this all the time similar in views based on formlib | 23:45 |
roym | yes, but I have two different viewletManagers involved here. | 23:45 |
projekt01 | Uhhhhh | 23:45 |
roym | for layout reasons. | 23:45 |
projekt01 | That's another problem | 23:45 |
projekt01 | Let's see... | 23:45 |
roym | yes, and in contentprovider/tales.py, srichter talks about this very thing | 23:45 |
projekt01 | There's a oprion to use global TAL variables in a viewlet manager. Did you see that? | 23:46 |
projekt01 | oprion/option | 23:46 |
roym | no - can you point me | 23:46 |
*** kamalunch is now known as kamalgill | 23:46 | |
projekt01 | See line 397 in zope/contentprovier/README.txt | 23:47 |
projekt01 | I guess this is the right concept to use. | 23:48 |
roym | not sure that I see how that lets me force 2 updates in a row, then 2 renders. | 23:49 |
projekt01 | Ok, there is no option to update two viewlets but you can use a global variable in both viewlet managers. | 23:50 |
projekt01 | Does this help? | 23:50 |
roym | I'd have to think a bit about that. Is it reasonable to add a method to contentprovider that simply returns the provider | 23:51 |
projekt01 | Can you describe what a viewlet does after a update and why you can't rendere them before the second update? | 23:51 |
roym | I have a folder of questions. Users select an answer and navigate to the next question. | 23:52 |
roym | The update happens to the current question. While rendering, the question id displayed needs to be that of the next question. | 23:53 |
roym | Physically however, (in layout) the qid is before the question itself. | 23:53 |
projekt01 | Smells like a use case for a session. or not? | 23:54 |
projekt01 | Or what about if you call define=""question provider:foobar" at the top of the page? | 23:55 |
roym | I do use session data, if thats what you mean... I am using viewlets because the same question presents differently to instructors than students. | 23:55 |
projekt01 | and later you call replace="structure question" | 23:55 |
roym | that would probably work. | 23:56 |
roym | However, doesn't that translate to 2 calls to the update/render pair. | 23:56 |
projekt01 | No, I use it also in some usecase wherer the order is relevant. | 23:57 |
roym | sorry - you're right. | 23:57 |
*** RaFromBRC has joined #zope3-dev | 23:57 | |
projekt01 | roym, let me know if this works or not. I fnot we have to find a way to sync two viewlet managers and update | 23:58 |
roym | ok - thanks for your help. | 23:58 |
projekt01 | the zope/contentprovider implementation. | 23:58 |
projekt01 | no problem | 23:58 |
roym | It would be nice to have a method that just returns the provider if tha's not too hairy. | 23:59 |
Generated by irclog2html.py 2.15.1 by Marius Gedminas - find it at mg.pov.lt!