IRC log of #zope3-dev for Friday, 2006-04-14

*** baldtrol has left #zope3-dev00:11
*** hazmat has quit IRC00:11
slinkPhas anybody noticed test.py doesn't  run any tests in src/zope/testing by default?00:12
*** sashav has quit IRC00:12
*** kamalgill has left #zope3-dev00:18
*** rockyburt has joined #zope3-dev00:21
*** gumpa has left #zope3-dev00:28
*** roym has joined #zope3-dev00:38
roymcontentprovider/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
roymThe example shows uses a python render() method to generate the view.00:42
*** srichter has joined #zope3-dev00:46
*** srichter has quit IRC00:46
*** BjornT_ has joined #zope3-dev00:58
*** dobee has quit IRC00:59
*** slinkP has left #zope3-dev01:03
*** BjornT has quit IRC01:15
*** whit has quit IRC01:25
*** hazmat has joined #zope3-dev01:25
*** roym has quit IRC01:32
*** whit has joined #zope3-dev01:42
*** natea|away is now known as natea01:47
*** TrevorP has quit IRC01:54
*** andrew_m has quit IRC01:54
*** tonico has quit IRC01:54
*** niemeyer has quit IRC01:54
*** BjornT_ has quit IRC01:54
*** _tarek has quit IRC01:54
*** bradb has quit IRC01:54
*** whit has quit IRC01:54
*** rockyburt has quit IRC01:54
*** natea has quit IRC01:54
*** sm has quit IRC01:54
*** whit has joined #zope3-dev01:56
*** BjornT_ has joined #zope3-dev01:56
*** rockyburt has joined #zope3-dev01:56
*** bradb has joined #zope3-dev01:56
*** niemeyer has joined #zope3-dev01:56
*** natea has joined #zope3-dev01:56
*** sm has joined #zope3-dev01:56
*** TrevorP has joined #zope3-dev01:56
*** andrew_m has joined #zope3-dev01:56
*** _tarek has joined #zope3-dev01:56
*** tonico has joined #zope3-dev01:56
*** romanofski is now known as rom|zZZZ02:01
*** TrevorP has quit IRC02:01
*** andrew_m has quit IRC02:01
*** tonico has quit IRC02:01
*** niemeyer has quit IRC02:01
*** BjornT_ has quit IRC02:01
*** bradb has quit IRC02:01
*** _tarek has quit IRC02:01
*** sm has quit IRC02:01
*** natea has quit IRC02:01
*** rockyburt has quit IRC02:01
*** whit has quit IRC02:01
*** whit has joined #zope3-dev02:03
*** BjornT_ has joined #zope3-dev02:03
*** rockyburt has joined #zope3-dev02:03
*** bradb has joined #zope3-dev02:03
*** niemeyer has joined #zope3-dev02:03
*** natea has joined #zope3-dev02:03
*** sm has joined #zope3-dev02:03
*** TrevorP has joined #zope3-dev02:03
*** andrew_m has joined #zope3-dev02:03
*** _tarek has joined #zope3-dev02:03
*** tonico has joined #zope3-dev02:03
*** TrevorP has quit IRC02:04
*** andrew_m has quit IRC02:04
*** tonico has quit IRC02:04
*** niemeyer has quit IRC02:04
*** BjornT_ has quit IRC02:04
*** bradb has quit IRC02:04
*** _tarek has quit IRC02:04
*** sm has quit IRC02:04
*** natea has quit IRC02:04
*** rockyburt has quit IRC02:04
*** whit has quit IRC02:04
*** whit has joined #zope3-dev02:09
*** BjornT_ has joined #zope3-dev02:09
*** rockyburt has joined #zope3-dev02:09
*** bradb has joined #zope3-dev02:09
*** niemeyer has joined #zope3-dev02:09
*** natea has joined #zope3-dev02:09
*** sm has joined #zope3-dev02:09
*** TrevorP has joined #zope3-dev02:09
*** andrew_m has joined #zope3-dev02:09
*** _tarek has joined #zope3-dev02:09
*** tonico has joined #zope3-dev02:09
*** BjornT_ has quit IRC02:09
*** BjornT has joined #zope3-dev02:13
*** kamalgill has joined #zope3-dev02:20
*** rockyburt is now known as rockyburt|zzz02:40
*** jinty has joined #zope3-dev02:54
*** kamalgill has left #zope3-dev03:47
*** jinty has quit IRC03:49
*** sm has quit IRC04:05
*** yota has quit IRC04:45
*** BjornT has quit IRC05:13
*** rockyburt|zzz has quit IRC05:37
*** niemeyer has quit IRC06:07
*** deo has quit IRC06:43
*** stub has joined #zope3-dev07:02
*** yota has joined #zope3-dev07:05
*** jinty has joined #zope3-dev07:13
*** pcardune has joined #zope3-dev07:19
*** stainsby has joined #zope3-dev08:02
*** eins has joined #zope3-dev08:17
einshi08:17
*** kamalgill has joined #zope3-dev08:32
*** sashav has joined #zope3-dev09:12
*** dobee has joined #zope3-dev09:29
*** rom|zZZZ is now known as romanofski09:32
romanofskimoin09:33
*** hdima has joined #zope3-dev09:35
*** natea has quit IRC09:39
*** jinty has quit IRC09:43
kamalgillmoin09:49
*** stub has quit IRC09:57
*** jinty has joined #zope3-dev10:00
*** romanofski has quit IRC10:09
*** natea has joined #zope3-dev10:12
*** kamalgill has left #zope3-dev10:18
*** dobee has quit IRC10:19
*** stereo__ has joined #zope3-dev10:20
*** hazmat has quit IRC10:22
*** dobee has joined #zope3-dev10:45
*** MJ has quit IRC10:46
*** dlk has joined #zope3-dev10:52
*** stereo__ has quit IRC11:21
*** oferw has joined #zope3-dev11:23
*** natea has quit IRC11:40
*** natea has joined #zope3-dev11:40
*** romanofski has joined #zope3-dev11:42
*** jinty has left #zope3-dev11:54
*** jinty has quit IRC11:54
*** stereo__ has joined #zope3-dev11:55
*** dlk has quit IRC12:02
*** MJ has joined #zope3-dev12:04
*** Londo_ has joined #zope3-dev12:23
*** stereo__ has quit IRC12:24
*** _tarek has quit IRC12:25
*** tarek has joined #zope3-dev12:26
*** alga has joined #zope3-dev12:35
*** oferw has quit IRC13:02
*** mkerrin has joined #zope3-dev13:07
*** mgedmin has joined #zope3-dev13:09
*** alga_ has joined #zope3-dev13:12
*** alga_ has quit IRC13:12
*** pcardune has quit IRC13:31
*** d2m has quit IRC13:50
*** stainsby has left #zope3-dev13:53
*** ignas has joined #zope3-dev13:54
*** stub has joined #zope3-dev13:55
*** Theuni has joined #zope3-dev14:10
*** mgedmin has quit IRC14:11
*** mgedmin has joined #zope3-dev14:12
*** dunny has quit IRC14:26
*** rockyburt has joined #zope3-dev14:27
*** dobee has quit IRC14:53
*** mgedmin has quit IRC15:02
*** sashav has quit IRC15:12
*** stub has quit IRC15:16
*** alga has quit IRC15:18
*** Theuni has quit IRC15:30
*** dobee has joined #zope3-dev15:31
*** efge has joined #zope3-dev15:45
*** zbir has quit IRC15:47
*** benji has joined #zope3-dev16:11
*** gumpa has joined #zope3-dev16:15
*** jinty has joined #zope3-dev16:33
*** mgedmin has joined #zope3-dev16:55
*** efge has quit IRC17:08
*** roym has joined #zope3-dev17:09
*** efge has joined #zope3-dev17:34
*** d2m has joined #zope3-dev17:35
*** gumpa has quit IRC17:48
*** hdima has quit IRC17:57
*** eins has quit IRC18:35
*** hazmat has joined #zope3-dev18:50
*** sashav has joined #zope3-dev18:55
*** dobee has quit IRC19:18
*** MJ has quit IRC19:20
*** kamalgill has joined #zope3-dev19:21
*** zbir has joined #zope3-dev19:37
*** rockyburt has quit IRC19:55
*** rockyburt has joined #zope3-dev20:03
*** jinty has quit IRC20:10
*** sm has joined #zope3-dev20:11
*** zbir` has joined #zope3-dev20:16
benjioh no!  the attack of the zbir clones!20:20
*** zbir has quit IRC20:23
*** pcardune has joined #zope3-dev20:24
*** MJ has joined #zope3-dev20:26
*** natea is now known as natea|lunch20:39
*** pcardune has quit IRC20:47
*** pcardune has joined #zope3-dev20:49
*** efge has quit IRC21:07
*** ignas has quit IRC21:09
*** ignas_ has joined #zope3-dev21:09
*** mkerrin has quit IRC21:17
*** mkerrin has joined #zope3-dev21:17
*** mkerrin has joined #zope3-dev21:51
*** gumpa has joined #zope3-dev21:58
*** ignas_ has quit IRC21:58
*** mkerrin has quit IRC22:20
*** kamalgill is now known as kamalunch22:22
*** rockyburt has quit IRC22:51
*** natea|lunch is now known as natea|away23:12
*** natea|away has quit IRC23:21
*** natea has joined #zope3-dev23:22
*** rockyburt has joined #zope3-dev23:24
roymanyone out there?23:30
roymI need a little guidance on modifying contentprovider.23:30
roymBasically, 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
roymIt seems like a lot of work, and I need to know if I am trying too hard.23:32
*** zbir` has quit IRC23:33
*** projekt01 has joined #zope3-dev23:33
roymroger: can I ask you a quick question about the contentprovider implementation.23:34
*** sashav has quit IRC23:35
*** mgedmin has quit IRC23:36
projekt01romy, yes sure23:37
roymI need a little guidance on modifying contentprovider.23:37
roymBasically, I am trying to modify the provider: directive to not call23:38
roymupdate/render, but to simply return itself, so that I can control the23:38
roymcalling of update/render from the zpt pages.23:38
roymIt seems like a lot of work, and I need to know if I am trying too hard.23:38
roymmaybe not modify the existing one, but create a contentprovider2 directive that does this.23:38
projekt01what about the nocall: prefix in tal?23:38
roymdoesn't seem to work. It still renders it.23:39
projekt01Ok. I see the return is:23:40
projekt01/* ---[ footer ]----------------------------------------------------------- */23:40
projekt01return provider.render()23:40
roymyes23:40
projekt01Why do you need this?23:40
roymI need to control update/render in viewletManagers23:40
roymfor exactly the reasons you outlined in your implementation.23:40
roymin TALESProviderImplementation23:41
roymsorry TALESProviderExpression23:41
projekt01I don't understand. What do you mean by the reason?23:42
projekt01What do you try to do in TAL whit the result?23:42
*** natea has quit IRC23:43
roymI 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
roymie: both updates need to happen first, then the renders.23:43
projekt01That's no problem23:44
roymhmmm, how would I handle that23:44
projekt01The provider TAL directives calls only the viewlet manager.23:44
projekt01The viewlet manager can collect all viewlets and update them, after that render them.23:44
projekt01We do this all the time similar in views based on formlib23:45
roymyes, but I have two different viewletManagers involved here.23:45
projekt01Uhhhhh23:45
roymfor layout reasons.23:45
projekt01That's another problem23:45
projekt01Let's see...23:45
roymyes, and in contentprovider/tales.py, srichter talks about this very thing23:45
projekt01There's a oprion to use global TAL variables in a viewlet manager. Did you see that?23:46
projekt01oprion/option23:46
roymno - can you point me23:46
*** kamalunch is now known as kamalgill23:46
projekt01See line 397 in zope/contentprovier/README.txt23:47
projekt01I guess this is the right concept to use.23:48
roymnot sure that I see how that lets me force 2 updates in a row, then 2 renders.23:49
projekt01Ok, there is no option to update two viewlets but you can use a global variable in both viewlet managers.23:50
projekt01Does this help?23:50
roymI'd have to think a bit about that. Is it reasonable to add a method to contentprovider that simply returns the provider23:51
projekt01Can you describe what a viewlet does after a update and why you can't rendere them before the second update?23:51
roymI have a folder of questions. Users select an answer and navigate to the next question.23:52
roymThe update happens to the current question. While rendering, the question id displayed needs to be that of the next question.23:53
roymPhysically however, (in layout) the qid is before the question itself.23:53
projekt01Smells like a use case for a session. or not?23:54
projekt01Or what about if you call define=""question provider:foobar" at the top of the page?23:55
roymI 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
projekt01and later you call replace="structure question"23:55
roymthat would probably work.23:56
roymHowever, doesn't that translate to 2 calls to the update/render pair.23:56
projekt01No, I use it also in some usecase wherer the order is relevant.23:57
roymsorry - you're right.23:57
*** RaFromBRC has joined #zope3-dev23:57
projekt01roym, let me know if this works or not. I fnot we have to find a way to sync two viewlet managers and update23:58
roymok - thanks for your help.23:58
projekt01the zope/contentprovider implementation.23:58
projekt01no problem23:58
roymIt 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!