page contents are not refreshed

Bruno Desthuilliers bdesth.quelquechose at free.quelquepart.fr
Thu Sep 14 20:47:31 EDT 2006


waylan a écrit :
(snip)
> 
> While Steve's examples certainly do the trick in this limited case, I
> assumed that the original poster was just starting with mod_python and
> I was simply trying to explain the bigger picture for future reference.
> As one develops more sophisticated code, simply adding it to the
> `handler` function becomes less desirable.

Indeed, but...

> Reacognizing that anything
> that must be reevaluated on each request must be callable 

There it gets plain wrong.

(snip)

> Steve's examples work because the current time is evaluated within
> `handler` and :
> 
> 
>>>>callable(handler)
> 
> True
> 
> While in the the original example:
> 
> 
>>>>callable(curtime)
> 
> False

The fact that the object bound to curtime being callable or not doesn't 
change anything to the problem. You can write as many functions as you 
want outside the handler, if they don't get called by the handler, this 
won't be of no use.



More information about the Python-list mailing list