def delcatagorys(): catagory=Catagory() requeststr = request.query_string ids=utils.getAjaxIds(unquote(requeststr)) for catagoryid in ids: catagory.deletecatagory(catagoryid) return(jsonify(msg='0000'))
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'))