Re: Can´t Surf Python Pages in Windoze

Victor Subervi victorsubervi at gmail.com
Fri Dec 26 12:11:44 EST 2008


On 12/26/08, Tino Wildenhain <tino at wildenhain.de> wrote:
>
>
> print "Content-Type: text/html"
>> print
>> print """
>> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "
>> http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
>> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
>> <head>
>> </head>
>> <body>
>> Yeah
>> </body>
>> </html>"""
>>
>
> this could be fine if called in CGI context.


Can you state clearly what "CGI context" means¿ Should I be importing a CGI
module¿ I pulled this code from a page that was working. If it had an
importation of something CGI, I believe I would have tested that with all
the other things that were imported that I tested, but perhaps not. I am not
at my home computer to test, and will not be back online for a week.
I am not worried about Zope now, but the above code, yes.
TIA,
Victor
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20081226/e9d27771/attachment-0001.html>


More information about the Python-list mailing list