sortable_table (class) ∞
-
class
sortable_table
(log, dbConn=False, currentPageUrl='', columnsToDisplay=[], defaultSort=False, tableRowsDictionary={})[source] ∞ Bases:
object
The worker class for the sortable_table module
Key Arguments
dbConn
– mysql database connectionlog
– loggercurrentPageUrl
– the baseurl for the webpagecolumnsToDisplay
– a list of column objects for the tabledefaultSort
– the column to sort on by defaulttableRowsDictionary
– dictionary of column names and values (e.g. a mysql query result)
Methods
close
()get
()get the sortable_table object
get table body
get table head