Re: Dynamic HTML from Python Script

2008-07-09 Thread Ethan Furman
Dave Parker wrote: On Jun 11, 10:43 pm, Dennis Lee Bieber <[EMAIL PROTECTED]> wrote: Those are not /server side/ refreshes... Correct. But we weren't discussing server side refreshes. We were discussing how to make the "browser refresh automatically in the server side": Two things:

Re: Dynamic HTML from Python Script

2008-06-12 Thread Dave Parker
On Jun 11, 10:43 pm, Dennis Lee Bieber <[EMAIL PROTECTED]> wrote: > Those are not /server side/ refreshes... Correct. But we weren't discussing server side refreshes. We were discussing how to make the "browser refresh automatically in the server side": On Jun 11, 7:59 am, Lie <[EMAIL P

Re: Dynamic HTML from Python Script

2008-06-11 Thread Sebastian "lunar" Wiesner
Lie <[EMAIL PROTECTED]> at Mittwoch 11 Juni 2008 16:04: > FYI: AJAX is just a very fancy name for Javascript AJAX is not just a "name", it's a _religion_ SCNR -- Freedom is always the freedom of dissenters. (Rosa Luxemburg) -- http://mail.python.org/mailm

Re: Dynamic HTML from Python Script

2008-06-11 Thread Dave Parker
On Jun 11, 7:59 am, Lie <[EMAIL PROTECTED]> wrote: > You can't make the browser refresh automatically in the server side, Yes you can. I don't know how to do it in Python, but here's an example in Flaming Thunder of a small, fast, light compiled server side CGI that delivers dynamic content every

Re: Dynamic HTML from Python Script

2008-06-11 Thread Lie
On Jun 11, 9:57 am, Aidan <[EMAIL PROTECTED]> wrote: > asdf wrote: > > On Wed, 11 Jun 2008 11:20:48 +1000, Aidan wrote: > > >> asdf wrote: > Well, there's a few ways you could approach it. > > You could create a cgi program from your script - this is probably the > solution you're lo

Re: Dynamic HTML from Python Script

2008-06-11 Thread Ivan Illarionov
On Wed, 11 Jun 2008 01:05:45 +, asdf wrote: >> Well, there's a few ways you could approach it. >> >> You could create a cgi program from your script - this is probably the >> solution you're looking for. >> >> > Output from the script does come up very often. There is a new output > every 1

Re: Dynamic HTML from Python Script

2008-06-11 Thread Lie
On Jun 11, 9:16 am, asdf <[EMAIL PROTECTED]> wrote: > On Wed, 11 Jun 2008 11:20:48 +1000, Aidan wrote: > > asdf wrote: > >>> Well, there's a few ways you could approach it. > > >>> You could create a cgi program from your script - this is probably the > >>> solution you're looking for. > > >> Outpu

Re: Dynamic HTML from Python Script

2008-06-11 Thread dusans
On Jun 11, 1:58 am, asdf <[EMAIL PROTECTED]> wrote: > I have a python script whose output i want to dynamically display > on a webpage which will be hosted using Apache. How do I do that? > > thanks def index(req): return "Page" u cant run it on lighttpd also, which is much faster then Apache

Re: Dynamic HTML from Python Script

2008-06-10 Thread Aidan
Aidan wrote: asdf wrote: On Wed, 11 Jun 2008 11:20:48 +1000, Aidan wrote: asdf wrote: Well, there's a few ways you could approach it. You could create a cgi program from your script - this is probably the solution you're looking for. Output from the script does come up very often. There i

Re: Dynamic HTML from Python Script

2008-06-10 Thread Aidan
asdf wrote: On Wed, 11 Jun 2008 11:20:48 +1000, Aidan wrote: asdf wrote: Well, there's a few ways you could approach it. You could create a cgi program from your script - this is probably the solution you're looking for. Output from the script does come up very often. There is a new output

Re: Dynamic HTML from Python Script

2008-06-10 Thread Mike
On Wed, Jun 11, 2008 at 2:16 PM, asdf <[EMAIL PROTECTED]> wrote: > On Wed, 11 Jun 2008 11:20:48 +1000, Aidan wrote: > > > asdf wrote: > >>> Well, there's a few ways you could approach it. > >>> > >>> You could create a cgi program from your script - this is probably the > >>> solution you're looki

Re: Dynamic HTML from Python Script

2008-06-10 Thread asdf
On Wed, 11 Jun 2008 11:20:48 +1000, Aidan wrote: > asdf wrote: >>> Well, there's a few ways you could approach it. >>> >>> You could create a cgi program from your script - this is probably the >>> solution you're looking for. >>> >>> >> Output from the script does come up very often. There is a n

Re: Dynamic HTML from Python Script

2008-06-10 Thread Mike
Web.py also springs to mind, I'd say it's worth looking at. Well, in that case you could simply append the new output to a static file > every 10 seconds, or whenever there is new output. That way, you just need > to refresh the static file in your browser to see updates... Given what I > underst

Re: Dynamic HTML from Python Script

2008-06-10 Thread Larry Bates
asdf wrote: I have a python script whose output i want to dynamically display on a webpage which will be hosted using Apache. How do I do that? thanks Take a look at Django. It may be overkill for this first project but any time you spend learning it should be paid back in future projects.

Re: Dynamic HTML from Python Script

2008-06-10 Thread Aidan
asdf wrote: Well, there's a few ways you could approach it. You could create a cgi program from your script - this is probably the solution you're looking for. Output from the script does come up very often. There is a new output every 10 secs and it's possible that the script might be run i

Re: Dynamic HTML from Python Script

2008-06-10 Thread asdf
> Well, there's a few ways you could approach it. > > You could create a cgi program from your script - this is probably the > solution you're looking for. > Output from the script does come up very often. There is a new output every 10 secs and it's possible that the script might be run indefi

Re: Dynamic HTML from Python Script

2008-06-10 Thread Aidan
asdf wrote: I have a python script whose output i want to dynamically display on a webpage which will be hosted using Apache. How do I do that? thanks Well, there's a few ways you could approach it. You could create a cgi program from your script - this is probably the solution you're looki

Dynamic HTML from Python Script

2008-06-10 Thread asdf
I have a python script whose output i want to dynamically display on a webpage which will be hosted using Apache. How do I do that? thanks -- http://mail.python.org/mailman/listinfo/python-list