def render_form_errors(form, type=u'all', **kwargs):
 renderer_cls = get_form_renderer(**kwargs)
 return renderer_cls(form, **kwargs).render_errors(type)

def render_form_errors ( form , type = u'all' , ** kwargs ) : renderer_cls = get_form_renderer ( ** kwargs ) return renderer_cls ( form , ** kwargs ) . render_errors ( type )
render form errors to a bootstrap layout .