For now we assume that if we have initialized the existing instance list that we wish to refresh this value.
(self)
| 1642 | self.file.count_instances_changed += 1 |
| 1643 | |
| 1644 | def refresh_instance_count(self): |
| 1645 | """ |
| 1646 | For now we assume that if we have initialized the existing instance list |
| 1647 | that we wish to refresh this value. |
| 1648 | """ |
| 1649 | if self.do_init_existing_instances is False: |
| 1650 | return |
| 1651 | |
| 1652 | self.file.count_instances = 0 |
| 1653 | for instance in self.instance_list_existing: |
| 1654 | if instance.soft_delete is False: |
| 1655 | self.file.count_instances += 1 |
| 1656 | |
| 1657 | def update_instance_count(self, action_type = None): |
| 1658 | """ |