happenings/utils/calendars.py
def formatday(self, day, weekday):
        """Set some commonly used variables."""
        self.wkday_not_today = '<td class="%s"><div class="td-inner">' % (
            self.cssclasses[weekday])

        self.wkday_today = (
            '<td class="%s calendar-today"><div class="td-inner">' % (
                self.cssclasses[weekday])
        )
        if URLS_NAMESPACE:
            url_name = '%s:day_list' % (URLS_NAMESPACE)
        else:
            url_name = 'day_list'

        self.day_url = reverse(url_name, args=(self.yr, self.mo, day))
        self.day = day

        self.anch = '<a href="%s">%d</a>' % (
            self.day_url, day
        )

        self.end = '</div></td>'
def formatday(self, day, weekday):
        self.wkday_not_today = '<td class="%s"><div class="td-inner">' % (
            self.cssclasses[weekday])

        self.wkday_today = (
            '<td class="%s calendar-today"><div class="td-inner">' % (
                self.cssclasses[weekday])
        )
        if URLS_NAMESPACE:
            url_name = '%s:day_list' % (URLS_NAMESPACE)
        else:
            url_name = 'day_list'

        self.day_url = reverse(url_name, args=(self.yr, self.mo, day))
        self.day = day

        self.anch = '<a href="%s">%d</a>' % (
            self.day_url, day
        )

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