def errors(field, printer): if field.errors : return (ul, attrs("errorlist"), [(li, error) for error in field.errors])
def help(field, printer): if field.help_text: return (div, attrs("help-text"), field.help_text)
def help(field, printer): if field.help_text : return (div, attrs("help-text"), field.help_text)
def errors(field, printer): if field.errors: return (ul, attrs("errorlist"), [(li, error) for error in field.errors])