Esempio n. 1
0
def custom_error_formatter(error):
    return '<p><span class="pylons-error">%s</span></p>\n' % html_quote(error)
Esempio n. 2
0
 def custom_formatter(error):
     return '<span class="custom-message">%s</span>' % (
         htmlfill.html_quote(error))
Esempio n. 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)
Esempio n. 5
0
def _error_formatter(error):
    """ `FormEncode` default error formating in templates."""
    return """<span class="error-message"> %s</span>""" % (
    htmlfill.html_quote(error))
Esempio n. 6
0
def u_error_formatter(error):
    return '<div class="error-container"><span class="error-message">%s</span></div>\n' % (
        htmlfill.html_quote(error))
Esempio n. 7
0
 def custom_formatter(error):
     return '<span class="custom-message">%s</span>' % (
         htmlfill.html_quote(error))
Esempio n. 8
0
def tw_bootstrap_error_formatter(error):
    return '<span class="help-error">%s</span>' % htmlfill.html_quote(error)
Esempio n. 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)