[BangPypers] cgi help

Anand Chitipothu anandology at gmail.com
Wed Oct 6 12:17:43 CEST 2010


2010/10/6 Kenneth Gonsalves <lawgon at au-kbc.org>:
> On Wed, 2010-10-06 at 15:33 +0530, Kenneth Gonsalves wrote:
>> > It only returns the header and a blank page.
>>
>> one error is that lines 19 and 20 should be unindented. The other
>> error,
>> I cannot understand - it says:
>> 'module does not have attribute escape', if the cgi.escape() wrapper
>> is
>> removed the code runs. But cgi module *does* have an escape - so why
>> this error?
>
> weird, this works:
>>>> print cgi.escape("abc")
> abc
>
> but it does not work in this code snippet:
>
> #!/usr/bin/env python
> import cgi
>
> print cgi.escape("abc")

What is the name of your script?


More information about the BangPypers mailing list