(self, status)
| 59 | self.zone_collection = mongo_connector.get_zone_connection() |
| 60 | |
| 61 | def _check_valid_status(self, status): |
| 62 | if ( |
| 63 | status != ZoneManager.EXPIRED |
| 64 | and status != ZoneManager.FALSE_POSITIVE |
| 65 | and status != ZoneManager.CONFIRMED |
| 66 | and status != ZoneManager.UNCONFIRMED |
| 67 | ): |
| 68 | self._logger.error("ERROR: Bad status value") |
| 69 | return False |
| 70 | |
| 71 | return True |
| 72 | |
| 73 | @staticmethod |
| 74 | def get_distinct_zones(mongo_connector, includeAll=False): |