--> -->
<type 'exceptions.TypeError'> | Python 2.6.6: /usr/bin/python Mon May 21 19:05:56 2012 |
A problem occurred in a Python script. Here is the sequence of
function calls leading up to the error, in the order they occurred.
| /data/vhost/www.undemocracy.com/docs/trunk.py in maintrunk(pathpart='/search/blair') |
107 elif pagefunc == "search":
|
108 LogIncomingDB(pagefunc, hmap["searchvalue"], referrer, ipaddress, useragent, remadeurl)
|
109 WriteIndexSearch(hmap["searchvalue"])
|
110 elif pagefunc == "nationlist":
|
111 LogIncomingDB(pagefunc, "", referrer, ipaddress, useragent, remadeurl)
|
| global WriteIndexSearch = <function WriteIndexSearch>, hmap = {'pagefunc': 'search', 'searchvalue': 'blair'} |
| /home/undemocracy/unparse-live/web2/indextype.py in WriteIndexSearch(search='blair') |
375 def WriteIndexSearch(search):
|
376 WriteGenHTMLhead("Searching for '%s'" % search)
|
377 recs = XapLookup(search)
|
378 if not recs:
|
379 print '<p>No results found</p>'
|
| recs undefined, global XapLookup = <function XapLookup>, search = 'blair' |
| /home/undemocracy/unparse-live/web2/xapsearch.py in XapLookup(query='blair') |
50 for match in matches:
|
51 #print match[4].get_value(0), match[4].get_data()
|
52 res.append(match[4].get_data())
|
53 return res
|
54
|
| res = [], res.append = <built-in method append of list object>, match = <xapian.MSetItem object>, ].get_data undefined |
<type 'exceptions.TypeError'>: 'MSetItem' object does not support indexing
args =
("'MSetItem' object does not support indexing",)
message =
"'MSetItem' object does not support indexing"