def GET(self): top_menus = get_menus(None) req = web.ctx.req req.update({ 'top_menus': top_menus, }) return render.index(**req)
def POST(self): data = web.input() menus = get_menus(data.p) req = web.ctx.req req.update({ 'menus': menus, }) return render.submenu(**req)
def GET(self): # admin login top_menus = get_menus(None) # other editor login req = web.ctx.req req.update({ 'top_menus': top_menus, }) return render.index(**req)