Esempio n. 1
0
	def GET(self, id):
		samepage = web.cookies().get('samepage')
		weibohack.weibo_set_uid(id, samepage)
		        

		self.img_list = weibohack.weibo_get_img()
    
		return render.show(self.img_list, id)
Esempio n. 2
0
	def POST(self, id):
		uid = web.input().uid
		if (uid == id or uid == '1'):
			weibohack.weibo_set_uid(id, 1)
			web.setcookie('samepage', '1', 600)
			self.img_list += weibohack.weibo_get_img()
			return render.show(self.img_list, id)
		else:
			web.setcookie('samepage', '0', 600)
			self.samepage = 0
	
		raise web.seeother('/'+uid)