page contents are not refreshed

Bruno Desthuilliers bdesth.quelquechose at
Fri Sep 15 02:47:31 CEST 2006

waylan a écrit :
> 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.


> Steve's examples work because the current time is evaluated within
> `handler` and :
> True
> While in the the original example:
> 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