Ejemplo n.º 1
0
 def GET(self):
     userdata = webinput(did=0)
     did = userdata.did
     if did == 0 or did == "0":
         return 404
     else:
         c = connect()
         delete_av_info(c, did)
         chdir(path[0] + sep + "avinfo")
         render = template.render("templates/")
         return render.delete()
Ejemplo n.º 2
0
	def GET(self):
		user_data = webinput(aid=0)
		aid = user_data.aid
		if aid==0:return 404
		if aid!=0 and not aid.isdigit():return 404
		f = updata_form()
		c = connect()
		avin = query_av_info(c,int(aid)-1,1)
		_,av,title,upid,up,create_time,play_times,collects_count,dans_count,\
		reviews_count,coins_count = avin[0]
		f.id.set_value(_)
		f.av.set_value(av)
		f.title.set_value(title)
		f.up.set_value(upid)
		f.create_time.set_value(create_time)
		f.play_times.set_value(play_times)
		f.collects_count.set_value(collects_count)
		f.dans_count.set_value(dans_count)
		f.reviews_count.set_value(reviews_count)
		f.coins_count.set_value(coins_count)
		chdir(path[0]+sep+'avinfo')
		render = template.render('templates/')
		#totalCounts,pageSize,currentPage
		return render.updata(f)
Ejemplo n.º 3
0
 def getinput():
     d = {}
     for k,v in webinput().items():
         if not v in [u'', None, '']:
             d[k] = v
     return d
Ejemplo n.º 4
0
 def POST(self, ses_mod_retForm):
     print ("Input session_module_returnForm: %s"%(ses_mod_retForm))
     print ("webinput: %s"%(webinput()))
     return self.process_input(ses_mod_retForm)
Ejemplo n.º 5
0
 def GET(self):
     user_data = webinput(page=1,splitlimit=10,order="")
     try:
         page = int(user_data.page)
     except ValueError,p:
         return 500