def getRenderingView(w3af, parentView):
 if RENDERING_ENGINES['webkit']:
  return WebKitRenderingView(w3af, parentView)
 elif RENDERING_ENGINES['moz']:
  return MozRenderingView(w3af, parentView)
 elif RENDERING_ENGINES['gtkhtml2']:
  return GtkHtmlRenderingView(w3af, parentView)
 raise BaseFrameworkException(NO_RENDER_MSG)

def getRenderingView ( w3af , parentView ) : if RENDERING_ENGINES [ 'webkit' ] : return WebKitRenderingView ( w3af , parentView ) elif RENDERING_ENGINES [ 'moz' ] : return MozRenderingView ( w3af , parentView ) elif RENDERING_ENGINES [ 'gtkhtml2' ] : return GtkHtmlRenderingView ( w3af , parentView ) raise BaseFrameworkException ( NO_RENDER_MSG )
return renderingview with best web engine or raise exception .