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

Method get

src/User/UserManager.py:69–74  ·  view source on GitHub ↗
(self, master_address=None)

Source from the content-addressed store, hash-verified

67 # Get user based on master_address
68 # Return: User or None
69 def get(self, master_address=None):
70 users = self.list()
71 if users:
72 return list(users.values())[0] # Single user mode, always return the first
73 else:
74 return None
75
76
77user_manager = UserManager() # Singleton

Callers 15

hasCmdPermissionMethod · 0.45
handleRequestMethod · 0.45
formatSiteInfoMethod · 0.45
actionAsMethod · 0.45
actionAnnouncerStatsMethod · 0.45
actionSiteSignMethod · 0.45
actionFileWriteMethod · 0.45
actionFileDeleteMethod · 0.45
actionFileRulesMethod · 0.45
actionCertSelectMethod · 0.45
actionSiteListMethod · 0.45
actionSiteUpdateMethod · 0.45

Calls 2

listMethod · 0.95
valuesMethod · 0.80

Tested by

no test coverage detected