def GET(self): logip() user_dict = web.config._session.user render_content = HomeDistribution.assign(web.input()) data_dict = bind_data(user_dict, 'home') data_dict['render_content'] = render_content return render.home(data_dict)
def POST(self): logip() return object_to_json(HomeDistribution.assign(web.input()))