i have a dictionary file that has the id and title for books the search goes against the dict then i will implement a sub query to limit the database.
right now it just returns a 500 error using this url http://206.251.38.98/search?s=Home class search: def GET(self): web.header('Content-Type', 'text/html', unique=True) title = 'Search Results' name = 'Search Results' results = [] i = web.input() search = i.s pkl_file = open('books_index.py', 'rb') mydict = pickle.load(pkl_file) pkl_file.close() for k,v in mydict.items(): if search in v['title']: results.append(k) return render.search(title, name, results) -- You received this message because you are subscribed to the Google Groups "web.py" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/webpy?hl=en.
