def _get_related_attributes(r_rgo, r_rto):
l1 = list()<EOL>l2 = list()<EOL>ref_filter = lambda ref: ref.OIR_ID == r_rgo.OIR_ID<EOL>for o_ref in many(r_rto).O_RTIDA[<NUM_LIT>].O_REF[<NUM_LIT>](ref_filter):<EOL><INDENT>o_attr = one(o_ref).O_RATTR[<NUM_LIT>].O_ATTR[<NUM_LIT>]()<EOL>l1.append(o_attr.Name)<EOL>o_attr = one(o_ref).O_RTIDA[<NUM_LIT>].O_OIDA[<NUM_LIT>].O_ATTR[<NUM_LIT>]()<EOL>l2.append(o_attr.Name)<EOL><DEDENT>return l1, l2<EOL>
The two lists of attributes which relates two classes in an association.