def get_list_connections(self, environment, product, unique_name_list=None, is_except=False):
        """
        Gets list of connections that satisfy the filter by environment, product and (optionally) unique DB names
        :param environment: Environment name
        :param product: Product name
        :param unique_name_list: list of unique db aliases
        :param is_except: take the connections with aliases provided or, the other wat around, take all the rest
        :return: list of dictionaries with connections
        """
        return_list = []
        for item in self.connection_sets:
            if unique_name_list:
                if item['unique_name']:
                    if is_except:
                        if item['environment'] == environment and item['product'] == product and \
                                (item['unique_name'] not in unique_name_list):
                            return_list.append(item)
                    elif not is_except:
                        if item['environment'] == environment and item['product'] == product and \
                                (item['unique_name'] in unique_name_list):
                            return_list.append(item)
            else:
                if item['environment'] == environment and item['product'] == product:
                    return_list.append(item)
        return return_list
def get_list_connections ( self , environment , product , unique_name_list = None , is_except = False ) : return_list = [ ] for item in self . connection_sets : if unique_name_list : if item [ 'unique_name' ] : if is_except : if item [ 'environment' ] == environment and item [ 'product' ] == product and ( item [ 'unique_name' ] not in unique_name_list ) : return_list . append ( item ) elif not is_except : if item [ 'environment' ] == environment and item [ 'product' ] == product and ( item [ 'unique_name' ] in unique_name_list ) : return_list . append ( item ) else : if item [ 'environment' ] == environment and item [ 'product' ] == product : return_list . append ( item ) return return_list
Gets list of connections that satisfy the filter by environment, product and (optionally) unique DB names
        :param environment: Environment name
        :param product: Product name
        :param unique_name_list: list of unique db aliases
        :param is_except: take the connections with aliases provided or, the other wat around, take all the rest
        :return: list of dictionaries with connections