def post(self): ret = self.check_privilege(TP_PRIVILEGE_OPS_AUZ) if ret != TPE_OK: return args = self.get_argument('args', None) if args is None: return self.write_json(TPE_PARAM) try: args = json.loads(args) except: return self.write_json(TPE_JSON_FORMAT) try: policy_id = int(args['policy_id']) policy_type = int(args['policy_type']) ids = args['ids'] except: log.e('\n') return self.write_json(TPE_PARAM) err = ops.remove_members(self, policy_id, policy_type, ids) self.write_json(err)