Each DayNotes instance is rendered into
these XHTML elements:
A horizontal rule, hr.
An h2 title that defines the
given anchor. See Section 23.11, “MonthCell.__dayTitle(): Render the
title for one daily block”.
A daily summary block. See Section 23.12, “MonthCell.__daySummary(): Render the
daily summary block”.
Rendering of the BirdForm children.
See Section 23.19, “MonthCell.__birdForm(): Render one
BirdForm”.
# - - - 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 )