(self, day, weekday)
Return a day as a table cell.
Return a day as a table cell.
Return a day as a table cell .
def formatday(self, day, weekday):
        """
        Return a day as a table cell.
        """
        if day == 0:
            # day outside month
            return '<td class="%s">&nbsp;</td>' % self.cssclass_noday
        else:
            return '<td class="%s">%d</td>' % (self.cssclasses[weekday], day)
def formatday ( self , day , weekday ) : if day == 0 : # day outside month return '<td class="%s">&nbsp;</td>' % self . cssclass_noday else : return '<td class="%s">%d</td>' % ( self . cssclasses [ weekday ] , day )