DisplayBug:20075 Python error on Author Search for pseudonyms

Jump to navigation Jump to search

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.
  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)
   87 if __name__ == '__main__':
clause undefined, dbases undefined, followup undefined

UnboundLocalError: local variable 'clause' referenced before assignment
      args = ("local variable 'clause' referenced before assignment",)