def items(self, options):
        """
            Render the items for the selector

            @param options: the options, list of tuples (value, text)
        """

        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

# =============================================================================
dataset/ETHPy150Open sahana/eden/modules/s3/s3xforms.py/S3XFormsOptionsWidget.items/original