is a scratchpad for any kind of data parsers want to pass to feed
methods.
These objects are available to the feed methods as their first
objects.
If restricted is True, embedded code must raise an error.
You should set an eventSource using the setter provided. This is the
iterparse instance the events are coming from (or something else that has
a pos attribute returning the current position).
You can register exit functions to do some "global" cleanup.
Parsers should call runExitFuncs right before they return the results;
this arranges for these functions to be called. The signature of an exit
function is exitfunc(rootStruct, parseContext) -> whatever.
|
__init__(self,
restricted=False,
forRD=None)
x.__init__(...) initializes x; see help(type(x)) for signature |
source code
|
|
|
|
|
|
|
|
|
setPositionOn(self,
struct)
calls a struct's setPosition method to tell it where it came from. |
source code
|
|
|
getQualifiedId(self,
id)
returns an id including the current RD's id, if known, otherwise id
itself. |
source code
|
|
|
|
|
|
|
resolveId(self,
id,
instance=None,
forceType=None)
returns the object referred to by the complex id. |
source code
|
|
|
|
Inherited from object :
__delattr__ ,
__format__ ,
__getattribute__ ,
__hash__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__repr__ ,
__setattr__ ,
__sizeof__ ,
__str__ ,
__subclasshook__
|