def pretty_from_link(inst, link):
values = '<STR_LIT>'<EOL>prefix = '<STR_LIT>'<EOL>metaclass = xtuml.get_metaclass(inst)<EOL>for name, ty in metaclass.attributes:<EOL><INDENT>if name in link.key_map:<EOL><INDENT>value = getattr(inst, name)<EOL>value = xtuml.serialize_value(value, ty)<EOL>values += '<STR_LIT>' % (prefix, name, value)<EOL>prefix = '<STR_LIT:U+002CU+0020>'<EOL><DEDENT><DEDENT>return '<STR_LIT>' % (metaclass.kind, values)<EOL>
Create a human-readable representation of a link on the 'FROM'-side