Re: html code generation

2010-01-21 Thread John Nagle
George Trojan wrote: I need an advice on table generation. The table is essentially a fifo, containing about 200 rows. The rows are inserted every few minutes or so. The simplest solution is to store row data per line and write directly html code: line = "value1value2>... " each run of the pro

Re: html code generation

2010-01-20 Thread Jon Clements
On Jan 20, 10:03 pm, "D'Arcy J.M. Cain" wrote: > On Wed, 20 Jan 2010 21:03:10 + > > George Trojan wrote: > > I need an advice on table generation. The table is essentially a fifo, > > containing about 200 rows. The rows are inserted every few minutes or > > so. The simplest solution is to sto

Re: html code generation

2010-01-20 Thread Chris Colbert
ah ok, i misread your post. Store each 'junk' as an item in the deque. the idea is the same though. On Wed, Jan 20, 2010 at 4:55 PM, Chris Colbert wrote: > > > On Wed, Jan 20, 2010 at 4:52 PM, Chris Colbert wrote: > >> use a deque with a 'junk' as each element >> >> http://docs.python.org/librar

Re: html code generation

2010-01-20 Thread D'Arcy J.M. Cain
On Wed, 20 Jan 2010 21:03:10 + George Trojan wrote: > I need an advice on table generation. The table is essentially a fifo, > containing about 200 rows. The rows are inserted every few minutes or > so. The simplest solution is to store row data per line and write > directly html code: > li

Re: html code generation

2010-01-20 Thread Chris Colbert
On Wed, Jan 20, 2010 at 4:52 PM, Chris Colbert wrote: > use a deque with a 'junk' as each element > > http://docs.python.org/library/collections.html > > On Wed, Jan 20, 2010 at 4:03 PM, George Trojan wrote: > >> I need an advice on table generation. The table is essentially a fifo, >> containing

Re: html code generation

2010-01-20 Thread Chris Colbert
use a deque with a 'junk' as each element http://docs.python.org/library/collections.html On Wed, Jan 20, 2010 at 4:03 PM, George Trojan wrote: > I need an advice on table generation. The table is essentially a fifo, > containing about 200 rows. The rows are inserted every few minutes or so. > T

html code generation

2010-01-20 Thread George Trojan
I need an advice on table generation. The table is essentially a fifo, containing about 200 rows. The rows are inserted every few minutes or so. The simplest solution is to store row data per line and write directly html code: line = "value1value2>... " each run of the program would read the pr