[python-win32] ASP/Python problems with HTMLgen...

Brian Jarrett bjarrett at garcoschools.org
Mon Sep 1 09:14:52 EDT 2003


I've tried several ways of getting HTML generated using HTMLgen.  Here is the code I ended with:

<%@ Language = Python %>
<%
from HTMLgen import *

doc = SimpleDocument(title="Hello")
doc.append(Heading(1, "Hello World"))
doc.write()

%>

All it gives me is "<html><body></body></html>" when I view the source.
Only Response.Write seems to work, but using it with the "doc" object above gives me a com error.

Can someone point me in the right direction?  Am I going to have to scrap using HTMLgen?

Brian





More information about the Python-win32 mailing list