DisplayBug:20075 Python error on Author Search for pseudonyms
Jump to navigation
Jump to search
- DisplayBug:20075 Python error on Author Search for pseudonyms OPEN From http://www.isfdb.org/cgi-bin/search.cgi if you enter a name under ISFDB Author Search Form / Enter Term 1, select type pseudonyms, and [Submit Query] there is a python error (listed in the bug details). Marc Kupper 18:38, 27 Dec 2006 (CST)
UnboundLocalError Python 2.4.2: /usr/local/bin/python Wed Dec 27 18:35:11 2006 A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred. /www/isfdb.tamu.edu/root/cgi-bin/edit/ap_search.cgi 105 entry = escape_quotes(form['TERM_1'].value) 106 use = escape_quotes(form['USE_1'].value) 107 (term1, dbases1, followup) = MakeSQLterm(use, entry) 108 terms = term1 109 dbases = dbases1 term1 undefined, dbases1 undefined, followup undefined, MakeSQLterm = <function MakeSQLterm>, use = 'author_pseudos', entry = 'name' /www/isfdb.tamu.edu/root/cgi-bin/edit/ap_search.cgi in MakeSQLterm(field='author_pseudos', value='name') 83 dbases = ['authors'] 84 followup = 'author_deathdate%%3D%s' % (value) 85 return (clause, dbases, followup) 86 87 if __name__ == '__main__': clause undefined, dbases undefined, followup undefined UnboundLocalError: local variable 'clause' referenced before assignment args = ("local variable 'clause' referenced before assignment",)