Next / Previous / Contents / Shipman's homepage

9.3. DaySummary.addLoc(): Add a location definition

birdnotes.py
# - - -   D a y S u m m a r y . a d d L o c

    def addLoc(self, loc):
        """Add a location.
        """
        if  self._locCodeMap.has_key(loc.code):
            raise KeyError("Duplicate location code '%s'" % loc.code)
        self._locCodeMap[loc.code] = loc