On 3/7/07, remi jolin <[EMAIL PROTECTED]> wrote:
>
> Hello Florent,

[...]

Hi Remi,

> the decorator adds 'elapsed_time' to the dict passed to @expose so the
> template can use it
> <span py:replace="elapsed_time"/> ... (or something that would test the
> availability of elapsed_time and display it if exists, all of this put
> in the footer portion of master.kid or equivalent...)
> So I don't really see the advantage ;-)

[...]

In my solution the elapsed_time is calculated upon call of the
callback. Which means that if you put the call at the end of the
template you'll call it when everything else has already been
processed. Thus the elapsed_time will take into account the kid
processing. (nearly all at least).

For more details we would need the input of a TG core developer, but I
feel that the callback will make a difference over the decorator by
being called later for the calculation.

Cheers,
Florent.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to