'Show object in view.'

def show_object(self, obj):

    if (not obj.is_text_or_html()):
        return
    if (not len(obj.get_body())):
        return
    mime_type = 'text/html'
    try:
        document = gtkhtml2.Document()
        document.clear()
        document.open_stream(mime_type)
        document.write_stream(obj.get_body())
        document.close_stream()
        self._renderingWidget.set_document(document)
    except ValueError as ve:
        pass
    except Exception as e:
        print _('gtkhtml2    exception:'), type(e), str(e)
        print _('Please    report    this    issue    here:')
        print 'https://github.com/andresriancho/w3af/issues/new'
