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
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