# - - - P r i I n d e x . h t m l
def html(self, parent, url=None):
'''Write our report.
[ parent is an et.Element ->
parent +:= XHTML rendering of self ]
'''
Generate nothing for circles that have no effort. Otherwise
see Section 22.4, “PriIndex.htmlMain: First line of the
primary index entry” for the generation of
the first line of the entry.
#-- 1
# [ if url is not None ->
# return
# else -> I ]
if len(self.effortList) == 0:
return
#-- 2
# [ parent +:= main entry for self with the name a submit
# button for self.circle ]
self.htmlMain(parent)
The first line is followed by the “As” entries,
if any, and then the “Overlaps” entries, if any.
See Section 22.7, “PriIndex.htmlAs(): Generate primary
“As” entries” and Section 22.9, “PriIndex._htmlOverlaps(): Generate
primary “Overlaps” index entries”.
#-- 3
# [ parent +:= "As" entries for self ]
self.htmlAs(parent)
#-- 4
# [ parent +:= "Overlaps" entries for self ]
if self.isOverlap:
self._htmlOverlaps(parent)