MCPcopy Create free account
hub / github.com/AstroPrint/AstroBox / __init__

Method __init__

src/astroprint/users.py:72–81  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

70
71class FilebasedUserManager(UserManager):
72 def __init__(self):
73 UserManager.__init__(self)
74 s = settings()
75
76 self._userfile = s.get(["accessControl", "userfile"]) or os.path.join( os.path.dirname(s._configfile), "users.yaml")
77 self._users = {}
78 self._dirty = False
79
80 self._customized = None
81 self._load()
82
83 def _load(self):
84 if os.path.exists(self._userfile) and os.path.isfile(self._userfile):

Callers

nothing calls this directly

Calls 5

_loadMethod · 0.95
settingsFunction · 0.90
joinMethod · 0.80
__init__Method · 0.45
getMethod · 0.45

Tested by

no test coverage detected