示例#1
0
 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)
示例#2
0
 def POST(self):  
     logip()      
     return object_to_json(HomeDistribution.assign(web.input()))