def get_repr(self, obj, referent=None):
objtype = type(obj)<EOL>typename = str(objtype.__module__) + "<STR_LIT:.>" + objtype.__name__<EOL>prettytype = typename.replace("<STR_LIT>", "<STR_LIT>")<EOL>name = getattr(obj, "<STR_LIT>", "<STR_LIT>")<EOL>if name:<EOL><INDENT>prettytype = "<STR_LIT>" % (prettytype, name)<EOL><DEDENT>key = "<STR_LIT>"<EOL>if referent:<EOL><INDENT>key = self.get_refkey(obj, referent)<EOL><DEDENT>url = reverse('<STR_LIT>', args=(<EOL>typename,<EOL>id(obj)<EOL>))<EOL>return ('<STR_LIT>'<EOL>'<STR_LIT>'<EOL>'<STR_LIT>'<EOL>% (url, id(obj), prettytype, key, get_repr(obj, <NUM_LIT:100>))<EOL>)<EOL>
Return an HTML tree block describing the given object.