def post(self): the_get = Post() self.set_format(the_get.get_format(self)) user_id = the_get.get_user_id(self) device_identities = the_get.get_device_identities(self) identity_id = the_get.get_device_identity_id(self) base_url = the_get.get_base_url(self) instance = LogicMatch() result = instance.match_version2(user_id, device_identities, base_url, identity_id) return self.response(result)
def post(self): the_post = Post() self.set_format(the_post.get_format(self)) device_identities = the_post.get_device_identities(self) user_id = the_post.get_user_id(self) name = the_post.get_name(self) base_url = the_post.get_base_url(self) conditions = the_post.get_conditions(self) if conditions: condition_dict = OHHOOperation.json2dict(conditions) else: condition_dict = dict() instance = LogicMatch() result = instance.match(device_identities, user_id, name, condition_dict, base_url) return self.response(result)
def post(self): the_get = Post() device_identities = the_get.get_device_identities(self) identity_list = device_identities.split(",") result = LogicTestGetUserByDevice.get(identity_list) return self.write(OHHOOperation.dict2json(result))