

def do_static(self, indent, value, **kwargs):
    field_name = kwargs.get('name', None)
    field = getattr(self.form, field_name)
    label = kwargs.get('label', None)
    obj = self.form.fields[field_name]
    if label:
        obj.label = display
    label = obj.get_label(_class='field')
    display = (field.data or '&nbsp;')
    return ((indent * ' ') + ('<div class="view"><label>%s:</label><span class="value">%s</span></div>' % (label, u_str(display))))

dataset/ETHPy150Open limodou/uliweb/uliweb/form/template_layout.py FormWriter.do_static/VarMisuse@70/83 `label`->`display`