Next / Previous / Contents / Shipman's homepage

21.2. YearCollection.addYear(): Add a year

This method creates a new YearRow instance and adds it to self. See Section 22, “class YearRow: Container for one year's records”.

noteweb
# - - -   Y e a r C o l l e c t i o n . a d d Y e a r

    def addYear ( self, txny, yyyy ):
        '''Add a new year row
        '''
        yearRow  =  YearRow ( self, txny, yyyy )
        self.__yearMap[yyyy]  =  yearRow
        return yearRow