'Render this component read-only (list-style)
@param resource: the S3Resource
@param data: the data dict (as returned from extract())'

@staticmethod
def render_list(resource, data):

    audit = current.audit
    (prefix, name) = (resource.prefix, resource.name)
    xml_decode = current.xml.xml_decode
    items = data['data']
    fields = data['fields']
    elements = []
    for item in items:
        if ('_id' in item):
            record_id = item['_id']
        else:
            continue
        audit('read', prefix, name, record=record_id, representation='html')
        t = []
        for f in fields:
            t.append([XML(xml_decode(item[f['name']]['text'])), '    '])
        elements.append([TAG[''](list(chain.from_iterable(t))[:(-1)]), ',    '])
    return DIV(list(chain.from_iterable(elements))[:(-1)], _class='embeddedComponent')
