def _get_zone_codes(self, zone_names):
        """ Given zone names, return the zone codes they refer to.
        """
        zones = 0
        for zone in zone_names:
            if zone in self.zone_map:
                zones |= self.zone_map[zone]
        return zones