(self)
return connection
* Returns the currently selected connection.
        * The {token} in the URL is replaced, so that the URL can be used.
        :return:
* Returns the currently selected connection.
        * The {token} in the URL is replaced, so that the URL can be used.
        :return:
* Returns the currently selected connection . * The { token } in the URL is replaced so that the URL can be used . : return :
def get_current_connection(self):
        """
        * Returns the currently selected connection.
        * The {token} in the URL is replaced, so that the URL can be used.
        :return:
        """
        name = self.cbxConnections.currentText()
        connection = copy.deepcopy(self.connections[name])
        if self._predefined_connections and name in self._predefined_connections and connection["token"]:
            connection["url"] = connection["url"].replace("{token}", connection["token"])
            connection["style"] = connection["style"].replace("{token}", connection["token"])
        return connection
def get_current_connection ( self ) : name = self . cbxConnections . currentText ( ) connection = copy . deepcopy ( self . connections [ name ] ) if self . _predefined_connections and name in self . _predefined_connections and connection [ "token" ] : connection [ "url" ] = connection [ "url" ] . replace ( "{token}" , connection [ "token" ] ) connection [ "style" ] = connection [ "style" ] . replace ( "{token}" , connection [ "token" ] ) return connection