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

11.1. TaxonPhotoSet.__init__(): Constructor

The constructor does not do much. It stores the specified taxon, zeroes the counts of contained photos, and sets up the internal data structures.

catweb
# - - -   T a x o n P h o t o S e t . _ _ i n i t _ _

    def __init__(self, taxon):
        '''Constructor for TaxonPhotoSet
        '''
        self.taxon = taxon
        self.nContained = 0
        self.nReferred = 0
        self._childMap = {}
        self._formMap = {}