def first(self): """ Convenience method to return the first item in the table. :return: TinyFatModel instance """ for entry in itervalues(super(TinyFatTable, self)._read()): return self.model(entry)
def all(self): """ Get all elements stored in the table. :returns: a list with all elements. :rtype: list[Element] """ return list(itervalues(self._read()))
def all(self): """ Get all elements stored in the table. :returns: a list with all elements. :rtype: list[Element] """ return list(itervalues(self._read()))