示例#1
0
def errors(field, printer):
    if field.errors :
        return (ul, attrs("errorlist"),
                [(li, error) for error in field.errors])
示例#2
0
def help(field, printer):
    if field.help_text:
        return (div, attrs("help-text"), field.help_text)
示例#3
0
def help(field, printer):
    if field.help_text :
        return (div, attrs("help-text"), field.help_text)
示例#4
0
def errors(field, printer):
    if field.errors:
        return (ul, attrs("errorlist"), [(li, error)
                                         for error in field.errors])