def search(): #print request.form #name=request.args.get('toSearch') #print name #form = cgi.FieldStorage() #searcher = form["search"] #print searcher #lyricinfos=data_fetch.get_lyrics('we are the champions') print 'qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq' searcher=request.args.get('searchKey') lyricinfos=data_fetch.get_lyrics(searcher) return json.dumps(lyricinfos)
def search(): print request.args name = request.args.get('toSearch') print name lyricinfos = data_fetch.get_lyrics('we are the champions') return json.dumps(lyricinfos)
def search(): print request.args name=request.args.get('toSearch') print name lyricinfos=data_fetch.get_lyrics('we are the champions') return json.dumps(lyricinfos)