HTMLgen 2.2 is torturing me!!

Jason Benderly jbenderl at olf.com
Mon Oct 11 11:14:45 EDT 1999


Hi All,

The following code works perfectly in HTMLgen 2.1 but does not work with
2.2.  Instead of giving
me a table with labels and inputs,  it just gives me a 1 row, 3 column
table that is green, blue, green.
Anybody know wassup?

Thanks,

Jason




import HTMLgen

doc = HTMLgen.SimpleDocument(title="Contacts")

myform = HTMLgen.Form(
        name="The Form",
        cgi="file:/sally1/work/py/action.sh"
        )

table = HTMLgen.Table(
        tabletitle="Contact",

border=4,width=500,cell_align="right",body_color=("blue","green"))

doc.append(myform)

myform.append(table)

FirstName = HTMLgen.Input(
        type="TEXT",
        name="FirstName",
        value="",
        size=20
        )

LastName = HTMLgen.Input(
        type="TEXT",
        name="LastName",
        value="",
        size=20
        )

Address = HTMLgen.Input(
        type="TEXT",
        name="Address",
        value="",
        size=20
        )

table.body=[]

table.body.append(("First Name ", FirstName))

table.body.append(("Last Name ", LastName))

table.body.append(("Address ", Address))

doc.write("/tmp/tst.html)






More information about the Python-list mailing list