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

Method get

src/Site/SiteManager.py:142–153  ·  view source on GitHub ↗
(self, address)

Source from the content-addressed store, hash-verified

140
141 # Return: Site object or None if not found
142 def get(self, address):
143 if self.isDomain(address):
144 address_resolved = self.resolveDomain(address)
145 if address_resolved:
146 address = address_resolved
147
148 if not self.loaded: # Not loaded yet
149 self.log.debug("Loading site: %s)..." % address)
150 self.load()
151 site = self.sites.get(address)
152
153 return site
154
155 # Return or create site and start download site files
156 def need(self, address, all_file=True, settings=None):

Callers 15

needMethod · 0.95
updateFunction · 0.45
main.pyFile · 0.45
siteSignMethod · 0.45
dbRebuildMethod · 0.45
siteCmdMethod · 0.45
sitePublishMethod · 0.45
listPluginsMethod · 0.45
listInstalledPluginsMethod · 0.45
reloadPluginsMethod · 0.45
__init__Method · 0.45
getTableVersionMethod · 0.45

Calls 3

isDomainMethod · 0.95
resolveDomainMethod · 0.95
loadMethod · 0.95

Tested by 12

getDbFilesMethod · 0.36
queryMethod · 0.36
verifyFilesMethod · 0.36
updateBadFilesMethod · 0.36
deleteFilesMethod · 0.36
testSignOptionalFilesMethod · 0.36
testLinkSecurityMethod · 0.36
testRawMethod · 0.36
testCloneMethod · 0.36
siteFunction · 0.36
userFunction · 0.36
getResultMethod · 0.36