Return a day as a table cell.
(self, day, weekday)
| 474 | cssclass_year = "year" |
| 475 | |
| 476 | def formatday(self, day, weekday): |
| 477 | """ |
| 478 | Return a day as a table cell. |
| 479 | """ |
| 480 | if day == 0: |
| 481 | # day outside month |
| 482 | return '<td class="%s"> </td>' % self.cssclass_noday |
| 483 | else: |
| 484 | return '<td class="%s">%d</td>' % (self.cssclasses[weekday], day) |
| 485 | |
| 486 | def formatweek(self, theweek): |
| 487 | """ |