(self, requireSameFilenames=False)
| 1530 | return True |
| 1531 | |
| 1532 | def areAllUsersInRoomReady(self, requireSameFilenames=False): |
| 1533 | if not self.currentUser.isReady(): |
| 1534 | return False |
| 1535 | for user in self._users.values(): |
| 1536 | if user.room == self.currentUser.room: |
| 1537 | if user.isReadyWithFile() == False: |
| 1538 | return False |
| 1539 | elif ( |
| 1540 | requireSameFilenames and |
| 1541 | ( |
| 1542 | self.currentUser.file is None |
| 1543 | or user.file is None |
| 1544 | or not utils.sameFilename(self.currentUser.file['name'], user.file['name']) |
| 1545 | ) |
| 1546 | ): |
| 1547 | return False |
| 1548 | return True |
| 1549 | |
| 1550 | def areAllOtherUsersInRoomReady(self): |
| 1551 | for user in self._users.values(): |
no test coverage detected