MCPcopy Create free account
hub / github.com/Syncplay/syncplay / setRoomList

Method setRoomList

syncplay/client.py:557–563  ·  view source on GitHub ↗
(self, newRoomList)

Source from the content-addressed store, hash-verified

555 # TODO: Handle cases where users add www. to start of domain
556
557 def setRoomList(self, newRoomList):
558 newRoomList = sorted(newRoomList)
559 from syncplay.ui.ConfigurationGetter import ConfigurationGetter
560 ConfigurationGetter().setConfigOption("roomList", newRoomList)
561 oldRoomList = self._config['roomList']
562 if oldRoomList != newRoomList:
563 self._config['roomList'] = newRoomList
564
565 def _isURITrustableAndTrusted(self, URIToTest):
566 """Returns a tuple of booleans: (trustable, trusted).

Callers 2

addRoomToListMethod · 0.80
openEditRoomsDialogMethod · 0.80

Calls 2

ConfigurationGetterClass · 0.90
setConfigOptionMethod · 0.80

Tested by

no test coverage detected