Public Member Functions | |
def | __init__ |
def | dumpPython |
def | insertInto |
Public Attributes | |
file | |
isResolved | |
loc | |
s | |
Private Member Functions | |
def | _isValid |
def | _valueFromString |
For injection purposes, pretend this is a new parameter type then have a post process step which strips these out
Definition at line 63 of file Mixins.py.
def Mixins::UsingBlock::__init__ | ( | self, | ||
value, | ||||
s = '' , |
||||
loc = 0 , |
||||
file = '' | ||||
) |
def Mixins::UsingBlock::_isValid | ( | value | ) | [private] |
Definition at line 74 of file Mixins.py.
00074 : 00075 return isinstance(value,str) def _valueFromString(value):
def Mixins::UsingBlock::_valueFromString | ( | value | ) | [private] |
only used for cfg-parsing
Definition at line 76 of file Mixins.py.
00076 : 00077 """only used for cfg-parsing""" 00078 return string(value) def insertInto(self, parameterSet, myname):
def Mixins::UsingBlock::dumpPython | ( | self, | ||
options | ||||
) |
Reimplemented from Mixins::_ParameterTypeBase.
Definition at line 85 of file Mixins.py.
00085 : 00086 if options.isCfg: 00087 return "process."+self.value() 00088 else: 00089 return self.value() 00090 00091 class _Parameterizable(object):
def Mixins::UsingBlock::insertInto | ( | self, | ||
parameterSet, | ||||
myname | ||||
) |
Definition at line 79 of file Mixins.py.
00079 : 00080 value = self.value() 00081 # doesn't seem to handle \0 correctly 00082 #if value == '\0': 00083 # value = '' 00084 parameterSet.addString(self.isTracked(), myname, value) def dumpPython(self, options):