def custom_error_formatter(error):
    return '<p><span class="pylons-error">%s</span></p>\n' % html_quote(error)
Exemple #2
0
 def custom_formatter(error):
     return '<span class="custom-message">%s</span>' % (
         htmlfill.html_quote(error))
Exemple #3
0
def custom_formatter(error):
    """Custom error formatter"""
    return '<span class="help-inline">%s</span>' % (
        htmlfill.html_quote(error)
    )
def custom_error_formatter(error):
    return '<p><span class="pylons-error">%s</span></p>\n' % html_quote(error)
Exemple #5
0
def _error_formatter(error):
    """ `FormEncode` default error formating in templates."""
    return """<span class="error-message"> %s</span>""" % (
    htmlfill.html_quote(error))
Exemple #6
0
def u_error_formatter(error):
    return '<div class="error-container"><span class="error-message">%s</span></div>\n' % (
        htmlfill.html_quote(error))
Exemple #7
0
 def custom_formatter(error):
     return '<span class="custom-message">%s</span>' % (
         htmlfill.html_quote(error))
Exemple #8
0
def tw_bootstrap_error_formatter(error):
    return '<span class="help-error">%s</span>' % htmlfill.html_quote(error)
Exemple #9
0
def tw_bootstrap_warning_error_formatter(error):
    return """
    <div class="alert-message block-message warning">
        <p>%s</p>
    </div>
    """ % htmlfill.html_quote(error)