Exemplo n.º 1
0
 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)
Exemplo n.º 2
0
    def all(self):
        """
        Get all elements stored in the table.

        :returns: a list with all elements.
        :rtype: list[Element]
        """

        return list(itervalues(self._read()))
Exemplo n.º 3
0
    def all(self):
        """
        Get all elements stored in the table.

        :returns: a list with all elements.
        :rtype: list[Element]
        """

        return list(itervalues(self._read()))