MCPcopy
hub / github.com/HelloZeroNet/ZeroNet / values

Method values

src/Content/ContentDbDict.py:98–107  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

96 return back
97
98 def values(self):
99 back = []
100 for key, val in dict.iteritems(self):
101 if not val:
102 try:
103 val = self.loadItem(key)
104 except Exception:
105 continue
106 back.append(val)
107 return back
108
109 def get(self, key, default=None):
110 try:

Callers 15

formatServerInfoMethod · 0.80
actionAnnouncerStatsMethod · 0.80
cbSitePublishMethod · 0.80
actionFileRulesMethod · 0.80
actionSiteListMethod · 0.80
stopMethod · 0.80
actionWebsocketMethod · 0.80
parseQueryMethod · 0.80
getConnectablePeersMethod · 0.80
getRecentPeersMethod · 0.80
cleanupPeersMethod · 0.80

Calls 2

loadItemMethod · 0.95
iteritemsMethod · 0.80

Tested by 6

testPingMethod · 0.64
testHashfieldMethod · 0.64
testUpdateMethod · 0.64
testPeerDiscoverMethod · 0.64
testRecentPeerListMethod · 0.64
benchmarkPeerMemoryMethod · 0.64