MCPcopy Create free account
hub / github.com/apenwarr/sshuttle / title

Method title

ui-macos/models.py:100–111  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

98 return True
99
100 def title(self):
101 host = self.host()
102 if not host:
103 return host
104 an = self.autoNets()
105 suffix = ""
106 if an == NET_ALL:
107 suffix = " (all traffic)"
108 elif an == NET_MANUAL:
109 n = self.nets()
110 suffix = ' (%d subnet%s)' % (len(n), len(n)!=1 and 's' or '')
111 return self.host() + suffix
112 def setTitle_(self, v):
113 # title is always auto-generated
114 config_changed()

Callers 1

fill_menuMethod · 0.80

Calls 3

hostMethod · 0.95
autoNetsMethod · 0.95
netsMethod · 0.95

Tested by

no test coverage detected