UniNews
University news from Greek and international universities in one place
Loading...
Searching...
No Matches
uninews.library.Page Class Reference

Public Member Functions

int total_pages (self)
 
int first_index (self)
 
int last_index (self)
 
bool has_previous (self)
 
bool has_next (self)
 

Public Attributes

 size
 
 articles
 

Static Public Attributes

list articles [Article]
 
int number
 
int size
 
int total_articles
 

Detailed Description

One page of articles, plus what the pagination bar needs to draw itself.

Member Function Documentation

◆ first_index()

int uninews.library.Page.first_index (   self)
1-based index of the first article shown, 0 when the page is empty.

◆ has_next()

bool uninews.library.Page.has_next (   self)

◆ has_previous()

bool uninews.library.Page.has_previous (   self)

◆ last_index()

int uninews.library.Page.last_index (   self)

◆ total_pages()

int uninews.library.Page.total_pages (   self)

Member Data Documentation

◆ articles [1/2]

list uninews.library.Page.articles [Article]
static

◆ articles [2/2]

uninews.library.Page.articles

◆ number

int uninews.library.Page.number
static

◆ size [1/2]

int uninews.library.Page.size
static

◆ size [2/2]

uninews.library.Page.size

◆ total_articles

int uninews.library.Page.total_articles
static

The documentation for this class was generated from the following file: