projekt01 | Python coding in TAL is not what we like to do. If we need a solution we have to find another way outside TAL for that. | 00:00 |
---|---|---|
*** pcardune has quit IRC | 00:00 | |
projekt01 | But don't ask me right now how this should look like ;-) | 00:00 |
roym | ok - have a nice weekend. bye. | 00:01 |
projekt01 | thanks, see you | 00:01 |
*** dunny has joined #zope3-dev | 00:03 | |
*** dunny has quit IRC | 00:04 | |
*** pcardune has joined #zope3-dev | 00:12 | |
roym | projekt01: are you still there... | 00:13 |
projekt01 | yup | 00:13 |
roym | What I need is (order is important): | 00:14 |
roym | question.update(), navigation.update() | 00:14 |
roym | followed by (in no particular order): | 00:14 |
roym | question.render(), navigation.render() | 00:14 |
roym | I don't think the solution we discussed will handle that. | 00:15 |
projekt01 | Hm, let's see... | 00:16 |
projekt01 | The provider directive calls a viewlet managers update and then render method. | 00:17 |
projekt01 | What if you use one viewlet manager for navigation and question and return a dict or tuple with all what you need? | 00:18 |
roym | Yes! | 00:18 |
roym | so you're suggesting storing the rendered content (after controlling the update order in a custom viewletManager method) | 00:19 |
projekt01 | Yes | 00:19 |
projekt01 | You can do whatever you need to do in update and render of the viewlet manager | 00:20 |
*** dunny has joined #zope3-dev | 00:20 | |
projekt01 | and return usefull data in the render method of this "single" viewlet manager. | 00:20 |
roym | The pattern here seems to be that if you need multiple updates, then the viewlets need to belong in the same viewletManager. | 00:21 |
projekt01 | Yes, absolutly | 00:21 |
projekt01 | But thi doesn't mean that the result get place in TAL at once in one place. | 00:21 |
roym | I get it. | 00:22 |
projekt01 | The provider is only a accessor to concent/logic for your use case. | 00:22 |
projekt01 | I don't recommend that for every use case, but I can't think of a nother solution for this right now. | 00:22 |
roym | So step 1 would be a define (that does updates/renders) and step2 would be selective extraction of rendered content. | 00:23 |
projekt01 | Yes, perhaps you will return a dict or tuple in the render method and selective place the result in TAL. | 00:24 |
roym | Thanks - I have been struggling with this for a couple of days, and this does help! | 00:24 |
projekt01 | cool, | 00:24 |
roym | bye (I mean this :). | 00:26 |
*** gumpa has left #zope3-dev | 00:27 | |
*** pcardune has quit IRC | 00:35 | |
*** pcardune has joined #zope3-dev | 00:35 | |
*** dunny has quit IRC | 00:39 | |
*** zbir` has joined #zope3-dev | 00:40 | |
*** dunny has joined #zope3-dev | 00:40 | |
*** dunny has quit IRC | 00:54 | |
*** pcardune has quit IRC | 01:00 | |
*** dunny has joined #zope3-dev | 01:04 | |
*** benji has quit IRC | 01:04 | |
*** pcardune has joined #zope3-dev | 01:05 | |
*** zbir` has quit IRC | 01:14 | |
*** ignas_ has joined #zope3-dev | 01:24 | |
*** SteveA has joined #zope3-dev | 01:26 | |
*** projekt01 has left #zope3-dev | 01:42 | |
*** ignas_ has quit IRC | 02:28 | |
*** tarek has quit IRC | 02:32 | |
*** zbir` has joined #zope3-dev | 03:04 | |
*** romanofski has quit IRC | 03:10 | |
*** zbir` has quit IRC | 03:21 | |
*** yota has quit IRC | 03:41 | |
*** kamalgill is now known as kamalnearby | 03:48 | |
*** RaFromBRC has quit IRC | 05:39 | |
*** roym has quit IRC | 05:47 | |
*** natea has joined #zope3-dev | 05:57 | |
*** stub has joined #zope3-dev | 06:31 | |
*** sm has quit IRC | 06:44 | |
*** kamalnearby has left #zope3-dev | 07:08 | |
*** lunatik has joined #zope3-dev | 07:56 | |
*** lunatik has quit IRC | 08:13 | |
*** rockyburt has quit IRC | 08:22 | |
*** d2m has quit IRC | 09:05 | |
*** tarek has joined #zope3-dev | 09:24 | |
*** dobee has joined #zope3-dev | 09:29 | |
*** d2m has joined #zope3-dev | 09:38 | |
*** Theuni has joined #zope3-dev | 09:41 | |
*** SteveA has quit IRC | 09:52 | |
*** sashav has joined #zope3-dev | 09:53 | |
*** sashav has quit IRC | 09:58 | |
*** romanofski has joined #zope3-dev | 11:13 | |
romanofski | moin | 11:15 |
*** romanofski is now known as rom|aw | 11:28 | |
*** sashav has joined #zope3-dev | 11:43 | |
*** dobee has quit IRC | 11:56 | |
*** Theuni has quit IRC | 12:32 | |
*** dobee has joined #zope3-dev | 12:32 | |
*** rom|aw is now known as romanofski | 12:40 | |
*** sashav has quit IRC | 12:42 | |
*** rockyburt has joined #zope3-dev | 12:55 | |
*** sashav has joined #zope3-dev | 13:41 | |
*** dunny has quit IRC | 13:46 | |
*** sashav has quit IRC | 13:48 | |
*** sashav has joined #zope3-dev | 14:23 | |
*** sashav has quit IRC | 14:58 | |
*** sashav has joined #zope3-dev | 15:05 | |
*** sashav has quit IRC | 15:11 | |
*** zbir` has joined #zope3-dev | 15:44 | |
*** stub has quit IRC | 15:49 | |
*** rockyburt has quit IRC | 15:55 | |
*** rockyburt has joined #zope3-dev | 15:58 | |
*** rockyburt has joined #zope3-dev | 16:03 | |
*** dobee has quit IRC | 16:55 | |
*** sashav has joined #zope3-dev | 17:23 | |
*** zbir` is now known as zbir | 17:28 | |
*** sashav has quit IRC | 17:34 | |
*** rockyburt has quit IRC | 17:41 | |
*** rockyburt has joined #zope3-dev | 17:58 | |
*** dobee has joined #zope3-dev | 18:12 | |
*** romanofski has quit IRC | 18:25 | |
*** rockyburt has quit IRC | 18:37 | |
*** yota has joined #zope3-dev | 19:10 | |
*** jinty has joined #zope3-dev | 19:36 | |
*** rockyburt has joined #zope3-dev | 20:14 | |
*** lunatik has joined #zope3-dev | 21:24 | |
*** lunatik has quit IRC | 21:39 | |
*** dunny has joined #zope3-dev | 22:52 | |
*** lunatik has joined #zope3-dev | 23:32 | |
*** hazmat has quit IRC | 23:53 | |
*** lunatik has quit IRC | 23:59 |
Generated by irclog2html.py 2.15.1 by Marius Gedminas - find it at mg.pov.lt!