Loading ccserver/conf.py +16 −0 Original line number Diff line number Diff line Loading @@ -217,6 +217,22 @@ class CCConf(object): self._set_conf(login, conf, create=True) def list_accounts(self): ''' List all registered accounts. :return: :class:`tuple` of :class:`str`, each item being an account login ''' logins = [] for filename in os.listdir(self._path): login, ext = os.path.splitext(filename) if ext == '.json': logins.append(login) return tuple(logins) class UnknownAccount(Exception): pass Loading Loading
ccserver/conf.py +16 −0 Original line number Diff line number Diff line Loading @@ -217,6 +217,22 @@ class CCConf(object): self._set_conf(login, conf, create=True) def list_accounts(self): ''' List all registered accounts. :return: :class:`tuple` of :class:`str`, each item being an account login ''' logins = [] for filename in os.listdir(self._path): login, ext = os.path.splitext(filename) if ext == '.json': logins.append(login) return tuple(logins) class UnknownAccount(Exception): pass Loading