| 1627 | self.serialized_ids_map[self.instance.id] = True |
| 1628 | |
| 1629 | def instance_count_updates(self): |
| 1630 | if self.file is None: |
| 1631 | return |
| 1632 | |
| 1633 | if not self.file.instance_type_count: |
| 1634 | self.file.instance_type_count = self.instance_type_count_template |
| 1635 | if not self.file.count_instances_changed: |
| 1636 | self.file.count_instances_changed = 0 |
| 1637 | |
| 1638 | if not self.file.instance_type_count.get(self.instance.type): |
| 1639 | self.file.instance_type_count[self.instance.type] = 1 |
| 1640 | else: |
| 1641 | self.file.instance_type_count[self.instance.type] += 1 |
| 1642 | self.file.count_instances_changed += 1 |
| 1643 | |
| 1644 | def refresh_instance_count(self): |
| 1645 | """ |