Esempio n. 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
Esempio n. 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
Esempio n. 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 )
Esempio n. 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)