'Helper method to render one option
@param item: the item as tuple (key, label, value, tooltip),
value=True indicates that the item is selected'

@staticmethod
def _render_item(fieldname, item):

    (key, label, value, tooltip) = item
    id = ('%s%s' % (fieldname, key))
    attr = {'_type': 'radio', '_name': fieldname, '_id': id, '_class': 's3-radioopts-option', '_value': key}
    if value:
        attr['_checked'] = 'checked'
    if tooltip:
        attr['_title'] = tooltip
    return DIV(INPUT(**attr), LABEL(label, _for=id))
