'Render the items for the selector
@param options: the options, list of tuples (value, text)'

def items(self, options):

    items = []
    setstr = self.setstr
    getstr = self.getstr
    for (index, option) in enumerate(options):
        (value, text) = option
        key = ('option%s' % index)
        if (hasattr(text, 'm') or hasattr(text, 'flatten')):
            setstr(key, text)
            text = getstr('label', key)
        else:
            text = TAG['label'](text)
        items.append(TAG['item'](text, TAG['value'](value)))
    return items
