def remove_permanent_connection ( cls, connection ): """ Removes a permanent connection. """ cls.check_permanent_connections() for i, connection2 in enumerate( cls.permanent_connections ): if connection == connection2: del cls.permanent_connections[i] set_pickle( PermanentConnections, cls.permanent_connections ) break
def remove_permanent_connection(cls, connection): """ Removes a permanent connection. """ cls.check_permanent_connections() for i, connection2 in enumerate(cls.permanent_connections): if connection == connection2: del cls.permanent_connections[i] set_pickle(PermanentConnections, cls.permanent_connections) break
def add_permanent_connection ( cls, connection ): """ Adds a permanent connection. """ cls.check_permanent_connections() cls.permanent_connections.append( connection.clone() ) set_pickle( PermanentConnections, cls.permanent_connections )
def add_permanent_connection(cls, connection): """ Adds a permanent connection. """ cls.check_permanent_connections() cls.permanent_connections.append(connection.clone()) set_pickle(PermanentConnections, cls.permanent_connections)