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