On Mon, Jan 11, 2010 at 11:26 AM, Dave Angel wrote:
> Victor Subervi wrote:
>
>> On Sun, Jan 10, 2010 at 3:09 PM, MRAB wrote:
>>
>>
>>
>>> browser = form.getfirst('browser', 'all')
>>>
>>>
except:
browser = headers()
try:
>>> A bare except, and if an exception _do
Victor Subervi wrote:
On Sun, Jan 10, 2010 at 3:09 PM, MRAB wrote:
browser = form.getfirst('browser', 'all')
except:
browser = headers()
try:
A bare except, and if an exception _does_ occur, they'll be a NameError
because 'headers' isn't defined.
Oh, not the large
On Sun, Jan 10, 2010 at 3:09 PM, MRAB wrote:
> browser = form.getfirst('browser', 'all')
>> except:
>> browser = headers()
>>
>> try:
> A bare except, and if an exception _does_ occur, they'll be a NameError
> because 'headers' isn't defined.
>
>
Oh, not the large halibut again! (I will be c
Victor Subervi wrote:
Hi;
The following code that works:
#! /usr/bin/python
import string
import cgitb; cgitb.enable()
import cgi
import MySQLdb
import sys,os
from sets import Set
import fpformat
cwd = os.getcwd()
sys.path.append(cwd)
from login import login
from particulars import ourOptions
Hi;
The following code that works:
#! /usr/bin/python
import string
import cgitb; cgitb.enable()
import cgi
import MySQLdb
import sys,os
from sets import Set
import fpformat
cwd = os.getcwd()
sys.path.append(cwd)
from login import login
from particulars import ourOptions
form = cgi.FieldStorage(