Re: Multiptle lines of output

Dan <[email protected]> Sun, 7 Dec 2008 14:32:05 -0500
Newsgroups gmane.text.clearsilver.general
Message-ID <[email protected]>
Brandon Long([email protected])@2008.12.06 21:19:08 -0800:
> On 12/06/08 Dan uttered the following other thing:
> > Hi. I am trying to figure out how to display multiple lines of several
> > values. I know this is basic and done all the time in CGIs, but I am
> > having trouble wrapping the template around it.
> > 
> > I am reading data from a text file in python one line at a time. For all
> > lines in the file I want to display each line as a set (list) of values
> > on a form in a page. Displaying one line is easy in template, but how
> > would I store multiple lines in HDF and read in a template??
> 
> I'm not sure what you're trying to do, exactly, but:

Sorry, let me try to explain better.

The file is really irrelevant, it could be a database instead. If it
were a database, I would read a row from a table, each row's culumns
would be separate variables. So I just need to read rows of data, and
display them in html.

In this case it's DNS data:

type | hostname | ip address | time 

They're displayed as default values in a form, which can be submitted
back to the CGI and written back.

Thanks.