コード例 #1
0
 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>"
コード例 #2
0
 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>"
コード例 #3
0
 def GET(self):
     form = web.input(asdf = None)
     vendorId = form.asdf
     menu = fosdb.getMenuByVendorId(vendorId)
     print menu
     return render.foodMenu(menu = menu)
コード例 #4
0
 def GET(self):
     form = web.input(asdf=None)
     vendorId = form.asdf
     menu = fosdb.getMenuByVendorId(vendorId)
     print menu
     return render.foodMenu(menu=menu)