B
brianrpsgt1
Newbie here....
I have been able to successful pull info from a MySQL DB, get the
results and output them in an HTML format using Cheetah to the screen
using IDLE. I am doing this on a Windows Laptop, running WinXP,
Python 2.5 and the latest version of Cheetah.
I have two questions:
1. How and where do you compile Cheetah templates in Windows? The
command in the docs is cheetah compile a, however, I believe that this
is for Linux. This does nothing in a DOS Prompt. Please provide the
info for this command in Windows.
2. How do I output the HTML to a file? I tried the following:
FILE = open(filename, "wt")
FILE.writelines(output)
FILE.close()
I get an error though that states that writelines() requires an
interable argument
Thnx for any assistance!
B
I have been able to successful pull info from a MySQL DB, get the
results and output them in an HTML format using Cheetah to the screen
using IDLE. I am doing this on a Windows Laptop, running WinXP,
Python 2.5 and the latest version of Cheetah.
I have two questions:
1. How and where do you compile Cheetah templates in Windows? The
command in the docs is cheetah compile a, however, I believe that this
is for Linux. This does nothing in a DOS Prompt. Please provide the
info for this command in Windows.
2. How do I output the HTML to a file? I tried the following:
FILE = open(filename, "wt")
FILE.writelines(output)
FILE.close()
I get an error though that states that writelines() requires an
interable argument
Thnx for any assistance!
B