This method renders a birdnotes.Paragraph
instance as an ordinary text paragraph.
# - - - M o n t h C e l l . _ _ p a r a g r a p h
def __paragraph ( self, parent, para ):
'''Add one paragraph of narrative.
[ (parent is an et.Element) and
(para is a birdnotes.Paragraph instance) ->
parent +:= a div class=PARA_CLASS containing
the XHTML rendering of para ]
'''
Everything is wrapped in a div
class=PARA_CLASS.
#-- 1 --
# [ parent +:= a div element with class=PARA_CLASS
# div := that div element ]
div = et.SubElement ( parent, 'div' )
div.attrib['class'] = PARA_CLASS
For the translation of the paragraph's content,
see Section 23.18, “MonthCell.__paraContent(): Content of
one paragraph”.
#-- 2 --
# [ div +:= div elements containing XHTML rendering
# of the content of para ]
self.__paraContent ( div, para )