[Zope] Basic Python Question
Matt Hamilton
matth at netsight.co.uk
Wed May 19 12:45:46 EDT 2004
Laura McCord wrote:
> My question is how do I make each of my statements on a separate line.
> Once the file is created it should look like this when the .htaccess is
> opened:
Laura,
You need to put \n in e.g.:
filename.write("AuthType Basic\n")
> Plus, filename.write("AuthName Password Required") how do I make
> Password Required have quotes around it when written to the file?
filename.write('AuthName "Password Required"')
or
filename.write("AuthName 'Password Required'")
or
filename.write("""AuthName "Password Required"""")
-Matt
--
Matt Hamilton matth at netsight.co.uk
Netsight Internet Solutions, Ltd. Business Vision on the Internet
http://www.netsight.co.uk +44 (0)117 9090901
Web Design | Zope/Plone Development & Consulting | Co-location | Hosting
More information about the Zope
mailing list