#!/usr/bin/env python
#coding=utf-8

import tornado.template


def field_errors(field):
    t = tornado.template.Template("""
        {% if field.errors %}
        <ul class="errors">
            {% for error in field.errors %}
            <li>{{ error }}</li>
            {% end %}
        </ul>
        {% end %}
        """)
    return t.generate(field=field)

def field_len(field):
    return str(len(field))

64d8e8a2721e13cba09f975a4893d81f970ce5e6
<mask token>

<mask token>


def field_len(field):
    return str(len(field))

<mask token>


def field_errors(field):
    t = tornado.template.Template(
        """
        {% if field.errors %}
        <ul class="errors">
            {% for error in field.errors %}
            <li>{{ error }}</li>
            {% end %}
        </ul>
        {% end %}
        """
        )
    return t.generate(field=field)


def field_len(field):
    return str(len(field))

import tornado.template


def field_errors(field):
    t = tornado.template.Template(
        """
        {% if field.errors %}
        <ul class="errors">
            {% for error in field.errors %}
            <li>{{ error }}</li>
            {% end %}
        </ul>
        {% end %}
        """
        )
    return t.generate(field=field)


def field_len(field):
    return str(len(field))

#!/usr/bin/env python
#coding=utf-8

import tornado.template


def field_errors(field):
    t = tornado.template.Template("""
        {% if field.errors %}
        <ul class="errors">
            {% for error in field.errors %}
            <li>{{ error }}</li>
            {% end %}
        </ul>
        {% end %}
        """)
    return t.generate(field=field)

def field_len(field):
    return str(len(field))
