diff --git a/src/caosdb/connection/authentication/interface.py b/src/caosdb/connection/authentication/interface.py index ff5fb95c0210031f26130e1f92cb808388df8cd1..c0e580a3cc9bbfa2e5a313f712f9e6cd5a9f8924 100644 --- a/src/caosdb/connection/authentication/interface.py +++ b/src/caosdb/connection/authentication/interface.py @@ -176,7 +176,7 @@ class CredentialsAuthenticator(AbstractAuthenticator): super(CredentialsAuthenticator, self).__init__() self._credentials_provider = credentials_provider self._connection = None - self._auth_token = None + self.auth_token = None def login(self): self._login() @@ -186,9 +186,9 @@ class CredentialsAuthenticator(AbstractAuthenticator): def _logout(self): _LOGGER.debug("[LOGOUT]") - if self._auth_token is not None: + if self.auth_token is not None: self._connection.request(method="DELETE", path="logout") - self._auth_token = None + self.auth_token = None def _login(self): username = self._credentials_provider.username diff --git a/src/caosdb/utils/checkFileSystemConsistency.py b/src/caosdb/utils/checkFileSystemConsistency.py index 10e71f64ff5100a4628689818fdcb3e564f4ff7c..6dd35f8a6f699a2c74ff41a9924cd65c436efd42 100755 --- a/src/caosdb/utils/checkFileSystemConsistency.py +++ b/src/caosdb/utils/checkFileSystemConsistency.py @@ -53,6 +53,12 @@ class CLIError(Exception): def runCheck(timeout, location): + """ Request the caosdb server to check the file system for consistency. + + location == None means that the whole file system is being checked. + Otherwise only a the directory tree under location is being checked. + """ + if (timeout is not None): db.get_config().set("Connection", "timeout", str(100 + int(timeout))) files = db.Container().retrieve(