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

Method setTrustedDomains

syncplay/client.py:546–555  ·  view source on GitHub ↗
(self, newTrustedDomains)

Source from the content-addressed store, hash-verified

544 self.playlist.changeToPlaylistIndexFromFilename(filename)
545
546 def setTrustedDomains(self, newTrustedDomains):
547 from syncplay.ui.ConfigurationGetter import ConfigurationGetter
548 ConfigurationGetter().setConfigOption("trustedDomains", newTrustedDomains)
549 oldTrustedDomains = self._config['trustedDomains']
550 if oldTrustedDomains != newTrustedDomains:
551 self._config['trustedDomains'] = newTrustedDomains
552 self.fileSwitchFoundFiles()
553 self.ui.showMessage("Trusted domains updated")
554 # TODO: Properly add message for setting trusted domains!
555 # TODO: Handle cases where users add www. to start of domain
556
557 def setRoomList(self, newRoomList):
558 newRoomList = sorted(newRoomList)

Callers 2

addTrustedDomainMethod · 0.80

Calls 4

fileSwitchFoundFilesMethod · 0.95
ConfigurationGetterClass · 0.90
setConfigOptionMethod · 0.80
showMessageMethod · 0.45

Tested by

no test coverage detected