Beispiel #1
0
	def attributeRange(self, attrName, variableSubstitution=True):
		"""
		Return a range tuple (string, string) for the given attribute name.  
		Workflow variables are substituted by default.
		"""
		seqRange = self.attributeNamed(attrName).seqRange
		if variableSubstitution:
			seqRange = (depends_variables.substitute(seqRange[0]), depends_variables.substitute(seqRange[1]))
		return seqRange
Beispiel #2
0
	def outputRange(self, outputName, variableSubstitution=True):
		"""
		Return a range tuple (string, string) for the given output name.  
		Workflow variables are substituted by default.
		"""
		seqRange = self.outputNamed(outputName).seqRange
		if seqRange and seqRange[0] and seqRange[1] and variableSubstitution:
			seqRange = (depends_variables.substitute(seqRange[0]), depends_variables.substitute(seqRange[1]))
		return seqRange
Beispiel #3
0
 def attributeRange(self, attrName, variableSubstitution=True):
     """
     Return a range tuple (string, string) for the given attribute name.  
     Workflow variables are substituted by default.
     """
     seqRange = self.attributeNamed(attrName).seqRange
     if variableSubstitution:
         seqRange = (depends_variables.substitute(seqRange[0]),
                     depends_variables.substitute(seqRange[1]))
     return seqRange
Beispiel #4
0
 def outputRange(self, outputName, variableSubstitution=True):
     """
     Return a range tuple (string, string) for the given output name.  
     Workflow variables are substituted by default.
     """
     seqRange = self.outputNamed(outputName).seqRange
     if seqRange and seqRange[0] and seqRange[1] and variableSubstitution:
         seqRange = (depends_variables.substitute(seqRange[0]),
                     depends_variables.substitute(seqRange[1]))
     return seqRange
Beispiel #5
0
	def attributeValue(self, attrName, variableSubstitution=True):
		"""
		Return a value string for the given attribute name.  Workflow variables
		are substituted by default.
		"""
		value = self.attributeNamed(attrName).value
		if variableSubstitution:
			value = depends_variables.substitute(value)
		return value
Beispiel #6
0
	def outputValue(self, outputName, subOutputName, variableSubstitution=True):
		"""
		Return a value string for the given output name and sub-name.  Workflow
		variables are substituted by default.
		"""
		value = self.outputNamed(outputName).value[subOutputName]
		if variableSubstitution:
			value = depends_variables.substitute(value)
		return value
Beispiel #7
0
	def inputValue(self, inputName, variableSubstitution=True):
		"""
		Return a value string for the given input name.  Workflow variables are
		substituted by default.
		"""
		value = self.inputNamed(inputName).value
		if variableSubstitution:
			value = depends_variables.substitute(value)
		return value
Beispiel #8
0
 def attributeValue(self, attrName, variableSubstitution=True):
     """
     Return a value string for the given attribute name.  Workflow variables
     are substituted by default.
     """
     value = self.attributeNamed(attrName).value
     if variableSubstitution:
         value = depends_variables.substitute(value)
     return value
Beispiel #9
0
 def inputValue(self, inputName, variableSubstitution=True):
     """
     Return a value string for the given input name.  Workflow variables are
     substituted by default.
     """
     value = self.inputNamed(inputName).value
     if variableSubstitution:
         value = depends_variables.substitute(value)
     return value
Beispiel #10
0
 def outputValue(self,
                 outputName,
                 subOutputName,
                 variableSubstitution=True):
     """
     Return a value string for the given output name and sub-name.  Workflow
     variables are substituted by default.
     """
     value = self.outputNamed(outputName).value[subOutputName]
     if variableSubstitution:
         value = depends_variables.substitute(value)
     return value