Exemplo n.º 1
0
    def __getConfigurationsIterator(self):
        ''' Get suitable configurations based on credentialsId or passed ports and protocol name
        @types: -> iterator(Config)'''
        if self.__configurationsIterator:
            return self.__configurationsIterator

        configurations = iteratortools.flatten(map(self.__spec.getConnectionConfigs, self.__protocols))
        self.__configurationsIterator = iteratortools.iterator(configurations)
        return self.__configurationsIterator
Exemplo n.º 2
0
def _getNodeListIterator(nodeList):
    return iteratortools.iterator(NodeListIterator(nodeList))
Exemplo n.º 3
0
def _getNodeListIterator(nodeList):
    return iteratortools.iterator(NodeListIterator(nodeList))
Exemplo n.º 4
0
 def __iter__(self):
     return iteratortools.iterator(self.value)
Exemplo n.º 5
0
 def __iter__(self):
     return iteratortools.iterator((self, ))
Exemplo n.º 6
0
 def __iter__(self):
     return iteratortools.iterator(self.value)
Exemplo n.º 7
0
 def __iter__(self):
     return iteratortools.iterator((self,))