'Show object in view.'

def show_object(self, obj):

    mime_type = 'text/html'
    load_string = self._renderingWidget.load_string
    try:
        if obj.is_text_or_html():
            body = obj.get_body()
            uri = obj.get_uri().url_string
            try:
                load_string(body, mime_type, UTF8, uri)
            except Exception:
                load_string(repr(body), mime_type, UTF8, uri)
        else:
            raise Exception
    except Exception:
        load_string(_("Can't    render    response"), mime_type, 'UTF-8', 'error')
