Re: page contents are not refreshed

2006-09-14 Thread Bruno Desthuilliers
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 add

Re: page contents are not refreshed

2006-09-13 Thread waylan
Steve Holden wrote: > waylan wrote: [snip] > > > >>from mod_python import apache > >>from time import strftime, gmtime > >> > > > > def curtime(): > > return strftime("%a, %d %b %Y %H:%M:%S +", gmtime()) > > > > > >>def handler(req): > >> req.content_type = "text/plain" > >> req.sen

Re: page contents are not refreshed

2006-09-13 Thread tobiah
Browser Cache? Gleb Rybkin wrote: > when running apache, mod_python in windows. > > This looks pretty strange. Creating a simple python file that shows > current time will correctly display the time in apache the first time, > but freezes afterwards and shows the same time on all subsequent click

Re: page contents are not refreshed

2006-09-13 Thread Steve Holden
waylan wrote: > Gleb Rybkin wrote: > >>when running apache, mod_python in windows. >> >>This looks pretty strange. Creating a simple python file that shows >>current time will correctly display the time in apache the first time, >>but freezes afterwards and shows the same time on all subsequent cl

Re: page contents are not refreshed

2006-09-13 Thread waylan
Gleb Rybkin wrote: > when running apache, mod_python in windows. > > This looks pretty strange. Creating a simple python file that shows > current time will correctly display the time in apache the first time, > but freezes afterwards and shows the same time on all subsequent clicks > as long as th

Re: page contents are not refreshed

2006-09-13 Thread Steve Holden
Gleb Rybkin wrote: > when running apache, mod_python in windows. > > This looks pretty strange. Creating a simple python file that shows > current time will correctly display the time in apache the first time, > but freezes afterwards and shows the same time on all subsequent clicks > as long as t