Esempio n. 1
0
def delcatagorys():
	catagory=Catagory()
	requeststr = request.query_string
	ids=utils.getAjaxIds(unquote(requeststr))
	for catagoryid in ids:
		catagory.deletecatagory(catagoryid)
	return(jsonify(msg='0000'))
Esempio n. 2
0
def delusers():
	user=User()
	requeststr = request.query_string
	ids=utils.getAjaxIds(unquote(requeststr))
	for userid in ids:
		print userid
		user.deleteuser(userid)
	return(jsonify(msg='0000'))