Ejemplo n.º 1
0
    def __items(self, ordered=True):
        """Returns the raw list of model objects."""
        result = self.editor.value
        if not isinstance(result, SequenceTypes):
            return [result]

        if ordered and self.reverse:
            return ReversedList(result)

        return result
Ejemplo n.º 2
0
    def items(self):
        """Returns the raw list of model objects."""

        items = self.value
        if not isinstance(items, SequenceTypes):
            items = [items]

        if self.factory.reverse:
            items = ReversedList(items)

        return items