Horizon
|
Public Member Functions | |
__init__ (self, key, pyparser, **kwds) | |
flatten (self, new) | |
merge (self, orig, new) | |
![]() | |
can_parse (self, text) | |
initial (self, text, comment) | |
![]() | |
add (self, obj) | |
__iadd__ (self, obj) | |
get_globals (self) | |
find_parser (self, text) | |
parse (self, node, text, comment) | |
pyparse (self, text) | |
fin (self, node) | |
pop (self, new, name) | |
Additional Inherited Members | |
![]() | |
delim | |
![]() | |
key | |
flat_key | |
data_name | |
default | |
initvalue | |
pyparser | |
list_merge | |
asList | |
asDict | |
children | |
parent | |
globals | |
required | |
Oi...we need a combination of the above two, as in 'D_to_A'.
pybis.RangeDictParam.__init__ | ( | self, | |
key, | |||
pyparser, | |||
** | default | ||
) |
key: Name of element. pyparser: Parser to call with pyparse default: Default value of object if not found initvalue: Default value of object on first merge data_name: Make the data of this node a child with name 'data_name' list_merge: Merge multiple copies together as list asList: Interpret pyparse results as a list asDict: Interpret pyparse results as a dict required: raise Exception if not found
Reimplemented from pybis.Param.
pybis.RangeDictParam.flatten | ( | self, | |
new | |||
) |
Reformat pyparse results as what we'd expect.
Reimplemented from pybis.Parse.
pybis.RangeDictParam.merge | ( | self, | |
orig, | |||
new | |||
) |
Merge two instances of the same parser under one parent.
Reimplemented from pybis.Parse.