(self)
return ret
When you implement self.rows for a paginated report,
            it should take into consideration the following:
            self.pagination.start (skip)
            self.pagination.count (limit)
When you implement self.rows for a paginated report,
            it should take into consideration the following:
            self.pagination.start (skip)
            self.pagination.count (limit)
When you implement self . rows for a paginated report it should take into consideration the following : self . pagination . start ( skip ) self . pagination . count ( limit )
def json_dict(self):
        """
            When you implement self.rows for a paginated report,
            it should take into consideration the following:
            self.pagination.start (skip)
            self.pagination.count (limit)
        """
        rows = _sanitize_rows(self.rows)
        total_records = self.total_records
        if not isinstance(total_records, int):
            raise ValueError("Property 'total_records' should return an int.")
        total_filtered_records = self.total_filtered_records
        if not isinstance(total_filtered_records, int):
            raise ValueError("Property 'total_filtered_records' should return an int.")
        ret = dict(
            sEcho=self.pagination.echo,
            iTotalRecords=total_records,
            iTotalDisplayRecords=total_filtered_records if total_filtered_records >= 0 else total_records,
            aaData=rows,
        )

        if self.total_row:
            ret["total_row"] = list(self.total_row)
        if self.statistics_rows:
            ret["statistics_rows"] = list(self.statistics_rows)

        return ret
def json_dict ( self ) : rows = _sanitize_rows ( self . rows ) total_records = self . total_records if not isinstance ( total_records , int ) : raise ValueError ( "Property 'total_records' should return an int." ) total_filtered_records = self . total_filtered_records if not isinstance ( total_filtered_records , int ) : raise ValueError ( "Property 'total_filtered_records' should return an int." ) ret = dict ( sEcho = self . pagination . echo , iTotalRecords = total_records , iTotalDisplayRecords = total_filtered_records if total_filtered_records >= 0 else total_records , aaData = rows , ) if self . total_row : ret [ "total_row" ] = list ( self . total_row ) if self . statistics_rows : ret [ "statistics_rows" ] = list ( self . statistics_rows ) return ret