Пример #1
0
 def itersBoolValues(self, attributeName, firstValue=False):
     """ Take the string of a given attribute and
     create a list of booleans that will be used by 
     the iteratioins. An special first value will be
     added to the list for iteration 0.
     """
     valuesStr = self.getAttributeValue(attributeName)
     if valuesStr is None:
         raise Exception('None value for attribute: %s' % attributeName)
     return [firstValue] + getBoolListFromValues(valuesStr, length=self.numberOfIterations.get())
Пример #2
0
 def itersBoolValues(self, attributeName, firstValue=False):
     """ Take the string of a given attribute and
     create a list of booleans that will be used by 
     the iteratioins. An special first value will be
     added to the list for iteration 0.
     """
     valuesStr = self.getAttributeValue(attributeName)
     if valuesStr is None:
         raise Exception('None value for attribute: %s' % attributeName)
     return [firstValue] + getBoolListFromValues(valuesStr, length=self.numberOfIterations.get())