#NEWLINE# def formatday( self , day , weekday ) : #NEWLINE# #INDENT# 'Set some commonly used variables.' #NEWLINE# self . wkday_not_today = ( '<td class="%s"><div class="td-inner">' % self . cssclasses [ weekday ] ) #NEWLINE# self . wkday_today = ( '<td class="%s calendar-today"><div class="td-inner">' % self . cssclasses [ weekday ] ) #NEWLINE# if URLS_NAMESPACE : #NEWLINE# #INDENT# url_name = ( '%s:day_list' % URLS_NAMESPACE ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# url_name = 'day_list' #NEWLINE# #UNINDENT# self . day_url = reverse ( url_name , args = ( self . yr , self . mo , day ) ) #NEWLINE# self . day = url_name #NEWLINE# self . anch = ( '<a href="%s">%d</a>' % ( self . day_url , day ) ) #NEWLINE# self . end = '</div></td>'