def all(self):
        """
        SQLA like 'all' method, will populate all rows and apply all
        filters and orders to it.
        """
        items = list()
        if not self._filters_cmd:
            items = self.store.get(self.query_class)
        else:
            for item in self.store.get(self.query_class):
                tmp_flag = True
                for filter_cmd in self._filters_cmd:
                    if not filter_cmd[0](item, filter_cmd[1], filter_cmd[2]):
                        tmp_flag = False
                        break
                if tmp_flag:
                    items.append(item)
        if self._order_by_cmd:
            items = self._order_by(items, self._order_by_cmd)
        total_length = len(items)
        if self._limit != 0:
            items = items[self._offset : self._offset + self._limit]
        return total_length, items

        SQLA like 'all' method, will populate all rows and apply all
        filters and orders to it.
        
flask_appbuilder/models/generic/__init__.py