def post(self): entityname = self.get_argument("entityname", "") entityId = self.get_argument("id", "0") print entityname, entityId result = entity.removeEntity(entityname, entityId) if result['result']=='success': self.writeLog( "remove",entityname,str(self.request.arguments)) self.write(tornado.escape.json_encode(result))
def post(self): entityname = self.get_argument("entityname", "") entityId = self.get_argument("id", "0") print entityname, entityId result = entity.removeEntity(entityname, entityId) self.write(tornado.escape.json_encode(result))