(self, watcher)
| 639 | watcher.setRoom(self) |
| 640 | |
| 641 | def removeWatcher(self, watcher): |
| 642 | if watcher.getName() not in self._watchers: |
| 643 | return |
| 644 | del self._watchers[watcher.getName()] |
| 645 | watcher.setRoom(None) |
| 646 | if not self._watchers and not self.isPersistent(): |
| 647 | self._position = 0 |
| 648 | self.writeToDb() |
| 649 | |
| 650 | def isEmpty(self): |
| 651 | return not bool(self._watchers) |
no test coverage detected