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

32.1. PartyHoursRow.__init__()

cbchistlib.py
# - - -   P a r t y H o u r s R o w . _ _ i n i t _ _

    def __init__(self, cbcHist):
        '''Constructor.
        '''
        #-- 1
        # [ self  :=  a new Row instance with cbcHist=(cbcHist) ]
        Row.__init__(self, cbcHist)

The row label is an instance of Section 35, “class HeadRowLabel: Row label for a heading”.

cbchistlib.py
        #-- 2
        # [ self._rowLabel  :=  a new HeadRowLabel with text
        #                       "Party-hours" ]
        self._rowLabel = HeadRowLabel("Party-hours")

The remaining cells are instances of Section 38, “class LabelCell: Column label cell”. The value contained in these cells is the total of all the effort records from the database that pertain to that column. See Section 32.2, “PartyHoursRow._sumEfforts(): Find all the party-hours for a logical column”.

cbchistlib.py
        #-- 3
        # [ self._cellList  :=  a list of PartyHoursCell instances
        #       containing the party-hours totals from cbcHist ]
        self._cellList = self._sumEfforts()