def gen_rule_subj_hrname(subj):
    hrname = [subj.get(role, u'\uffff') for role in ('o', 'd')]
    hrname = [gen_rule_host_hrname(part) for part in hrname]
    return hrname
def gen_rule_subj_hrname(subj):
    hrname = [subj.get(role, u'\uffff') for role in ('o', 'd')]
    hrname = [gen_rule_host_hrname(part) for part in hrname]
    return hrname