def run(self, commands):
     try:
         self.checkCleanTree(commands)
         return self.runDecorated(lambda: Py4JCLIConnector.run(self, commands), self._getProgressMessage(commands))
     except Py4JConnectionException:
         startGateway()
         self.checkCleanTree(commands)
         return self.runDecorated(lambda: Py4JCLIConnector.run(self, commands), self._getProgressMessage(commands))
     except Py4JNetworkError:
         startGateway()
         self.checkCleanTree(commands)
         return self.runDecorated(lambda: Py4JCLIConnector.run(self, commands), self._getProgressMessage(commands))
Example #2
0
def setUsername(name):
    name = name.strip()
    if name:
        con = Py4JCLIConnector()
        con.configglobal(geogig.USER_NAME, name)
    return True
 def checkIsAlive(self):
     try:
         self.runDecorated(lambda: Py4JCLIConnector.checkIsAlive(self))
     except Py4JConnectionException:
         startGateway()
         self.runDecorated(lambda: Py4JCLIConnector.checkIsAlive(self))
Example #4
0
def setEmail(email):
    email = email.strip()
    if email:
        con = Py4JCLIConnector()
        con.configglobal(geogig.USER_EMAIL, email)
    return True