Example #1
0
 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
Example #2
0
 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
Example #3
0
 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 )
Example #4
0
 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)