def GET(self): if sessionData['userId']!=None: vendorId = sessionData['userId'] vendorMenu = fosdb.getMenuByVendorId(vendorId) return render.vendorFoodMenu(menu = vendorMenu) else: return "<h1>You need to log in first.<h1>"
def GET(self): if sessionData['userId'] != None: vendorId = sessionData['userId'] vendorMenu = fosdb.getMenuByVendorId(vendorId) return render.vendorFoodMenu(menu=vendorMenu) else: return "<h1>You need to log in first.<h1>"
def GET(self): form = web.input(asdf = None) vendorId = form.asdf menu = fosdb.getMenuByVendorId(vendorId) print menu return render.foodMenu(menu = menu)
def GET(self): form = web.input(asdf=None) vendorId = form.asdf menu = fosdb.getMenuByVendorId(vendorId) print menu return render.foodMenu(menu=menu)