NOTICE: The ICES Reports database has moved to http://www.ices.utexas.edu/ices/reports/. Your browser will be redirected there in a moment.
--> -->| NameError | Python 2.4.3: /usr/bin/python Tue Nov 24 09:28:15 2009 |
A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.
| /var/www/cgi-bin/reports.py |
| 94 |
| 95 try: |
| 96 cursor.execute( sqlSelectStatement + ' ' + whereClause + ' ORDER BY id DESC' ) |
| 97 while (1): |
| 98 result = cursor.fetchone() |
| cursor undefined, sqlSelectStatement = 'SELECT id , title , authors , filepath , pubdate FROM reports', whereClause = 'WHERE YEAR( pubdate ) = YEAR( NOW() )' |
NameError: name 'cursor' is not defined
args =
("name 'cursor' is not defined",)