MCPcopy Index your code
hub / github.com/Syncplay/syncplay / sendList

Method sendList

syncplay/protocols.py:689–699  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

687 userlist[dummyRoom][" " * dummyCount] = dummyFile
688
689 def sendList(self):
690 userlist = {}
691 watchers = self._factory.getAllWatchersForUser(self._watcher)
692 dummyCount = 0
693 for watcher in watchers:
694 self._addUserOnList(userlist, watcher)
695 if self._watcher.isGUIUser(self.getFeatures()):
696 for emptyRoom in self._factory.getEmptyPersistentRooms():
697 dummyCount += 1
698 self._addDummyUserOnList(userlist, emptyRoom, dummyCount)
699 self.sendMessage({"List": userlist})
700
701 @requireLogged
702 def handleList(self, _):

Callers 1

handleListMethod · 0.95

Calls 7

_addUserOnListMethod · 0.95
getFeaturesMethod · 0.95
_addDummyUserOnListMethod · 0.95
isGUIUserMethod · 0.80
sendMessageMethod · 0.80
getAllWatchersForUserMethod · 0.45

Tested by

no test coverage detected