Пример #1
0
def test_connection(address, api_path, login, password):
    c = Connection(address, api_path, login, password)
    remote_version = c.get_resource_from_server("info")["qtdjango_version"]
    return remote_version
Пример #2
0
    def set_connection_params(self, server, url, login, password):

        self.__connection = Connection(server, url, login, password)
        current_user = self.get_current_user()
        for func in self.notify_user_changed:
            func(current_user)