Next / Previous / Contents / Shipman's homepage

23.10. MonthCell.__dayBlock(): Render one daily note set

Each DayNotes instance is rendered into these XHTML elements:

noteweb
# - - -   M o n t h C e l l . _ _ d a y B l o c k

    def __dayBlock ( self, parent, dayNotes, anchor ):
        '''Generate all the output for one DayNotes instance.
        '''
        #-- 1 --
        # [ parent  +:=  an empty hr element ]
        et.SubElement ( parent, 'hr' )

        #-- 2 --
        # [ parent  +:=  an h2 heading describing dayNotes
        #                that has id=anchor ]
        self.__dayTitle ( parent, dayNotes, anchor )

        #-- 3 --
        # [ parent  +:=  a div class=DAY_SUMMARY_CLASS element
        #       representing the daily summary for dayNotes ]
        self.__daySummary ( parent, dayNotes )

        #-- 4 --
        # [ parent  +:=  XHTML for all the BirdForm children
        #                of dayNotes ]
        for birdForm in dayNotes.genForms():
            #-- 4 body --
            # [ parent  +:=  XHTML rendering of birdForm ]
            self.__birdForm ( parent, birdForm )