[BangPypers] cgi help

delegbede at dudupay.com delegbede at dudupay.com
Wed Oct 6 12:22:32 CEST 2010


Got it fixed.
Thanks y'all.

I defined a variable out of scope.
I ran it on my IDE to discover it.
rowNumber was out of scope.
Regards.
Sent from my BlackBerry wireless device from MTN

-----Original Message-----
From: Kenneth Gonsalves <lawgon at au-kbc.org>
Sender: bangpypers-bounces+delegbede=dudupay.com at python.org
Date: Wed, 06 Oct 2010 15:45:35 
To: Bangalore Python Users Group - India<bangpypers at python.org>
Reply-To: Bangalore Python Users Group - India <bangpypers at python.org>
Subject: Re: [BangPypers] cgi help

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")

-- 
regards
Kenneth Gonsalves

_______________________________________________
BangPypers mailing list
BangPypers at python.org
http://mail.python.org/mailman/listinfo/bangpypers


More information about the BangPypers mailing list