def __init__(self, id, relationship, attribute, weight): self.id = id self.relationship = common.standardize_text(relationship) self.attribute = common.standardize_text(attribute) self.weight = weight self.concat = s.nullify_blanks(s.make_string([self.relationship, self.attribute])) self.is_populated = self.concat is not None
def __init__(self, id, given, other, family, full_name): self.id = id self.given = common.standardize_text(given) self.other = common.standardize_text(other) self.family = common.standardize_text(family) self.concat = s.nullify_blanks(s.make_string([self.given, self.other, self.family])) self.is_populated = self.concat is not None