def GET(self): args = web.input(type="view") db = NovelDB() if args.type == "view": return render_to_response("ajax/top_view", {"toshows": db.get_view_top()}) elif args.type == "latest": return render_to_response("ajax/top_latest", {"toshows": db.get_latest_top()}) return "ajax ready"