Next / Previous / Contents / TCC Help System / NM Tech homepage

22.5. PriIndex.soxMain()

Like .htmlMain() but writes using sox.

cbchistlib.py
# - - -   P r i I n d e x . s o x M a i n

    def soxMain(self, sox):
        '''Variant of .htmlMain() for sox output.
        '''
        div = sox.start("div", CLASS_PRI_DIV,
                        id=anchorName(self.circle))
        sox.leaf("span", CLASS_PRI_NAME, self.circle.cir_name, ", ",
                 self.circle.allRegions())
        sox.leaf("span", CLASS_LAT_LON,
                 latLonFormat(self.circle.lat, self.circle.lon))
        sox.leaf("span", CLASS_YEAR_LIST,
                 yearBrackets(self.effortList))
        div.end()