'Render a column of the record
@param list_id: the HTML ID of the list
@param rfield: the S3ResourceField
@param record: the record as dict'

def render_column(self, item_id, rfield, record):

    value = record._row[rfield.colname]
    if value:
        if (rfield.ftype == 'text'):
            _class = 'card_manylines'
        else:
            _class = 'card_1_line'
        if (rfield.colname == 'pr_person.gender'):
            gender = record._row[rfield.colname]
            if (gender == 2):
                icon = 'female'
            elif (gender == 3):
                icon = 'male'
            else:
                return None
        else:
            icon = rfield.fname
        return P(ICON(self.ICONS.get(icon, 'icon')), LABEL(('%s:    ' % rfield.label)), SPAN(record[rfield.colname]), _class=_class)
    else:
        return None
