HTML page constructor. Keyword arguments: tables -- List of SimpleTable objects css -- Cascading Style Sheet specification that is appended before the table string encoding -- Characters encoding. Default: UTF-8
(self, tables=None, css=None, encoding="utf-8")
| 264 | """A class to create HTML pages containing CSS and tables.""" |
| 265 | |
| 266 | def __init__(self, tables=None, css=None, encoding="utf-8"): |
| 267 | """HTML page constructor. |
| 268 | |
| 269 | Keyword arguments: |
| 270 | tables -- List of SimpleTable objects |
| 271 | css -- Cascading Style Sheet specification that is appended before the |
| 272 | table string |
| 273 | encoding -- Characters encoding. Default: UTF-8 |
| 274 | """ |
| 275 | self.tables = tables or [] |
| 276 | self.css = css |
| 277 | self.encoding = encoding |
| 278 | |
| 279 | def __str__(self): |
| 280 | """Return the HTML page as a string.""" |
nothing calls this directly
no outgoing calls
no test coverage detected