示例#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
示例#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
示例#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 )
示例#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)