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
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
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
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
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
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