Method Summary |
|
__init__(self,
settings,
reporter,
*args,
**kwargs)
|
|
asdom (self,
dom)
Return a DOM representation of this document. |
|
copy (self)
Return a copy of self. |
|
has_name(self,
name)
|
|
note_anonymous_ref(self,
ref)
|
|
note_anonymous_target(self,
target)
|
|
note_autofootnote(self,
footnote)
|
|
note_autofootnote_ref(self,
ref)
|
|
note_citation(self,
citation)
|
|
note_citation_ref(self,
ref)
|
|
note_explicit_target(self,
target,
msgnode)
|
|
note_external_target(self,
target)
|
|
note_footnote(self,
footnote)
|
|
note_footnote_ref(self,
ref)
|
|
note_implicit_target(self,
target,
msgnode)
|
|
note_indirect_target(self,
target)
|
|
note_internal_target(self,
target)
|
|
note_parse_message(self,
message)
|
|
note_pending(self,
pending,
priority)
|
|
note_refid(self,
node)
|
|
note_refname(self,
node)
|
|
note_source(self,
source,
offset)
|
|
note_substitution_def(self,
subdef,
def_name,
msgnode)
|
|
note_substitution_ref(self,
subref,
refname)
|
|
note_symbol_footnote(self,
footnote)
|
|
note_symbol_footnote_ref(self,
ref)
|
|
note_transform_message(self,
message)
|
|
set_duplicate_name_id(self,
node,
id,
name,
msgnode,
explicit)
|
|
set_id(self,
node,
msgnode)
|
|
set_name_id_map (self,
node,
id,
msgnode,
explicit)
self.nameids maps names to IDs, while self.nametypes maps names to
booleans representing hyperlink type (True==explicit,
False==implicit). |
Inherited from Element |
|
__add__ (self,
other)
|
|
__delitem__ (self,
key)
|
|
__getitem__ (self,
key)
|
|
__iadd__ (self,
other)
Append a node or a list of nodes to self.children . |
|
__len__ (self)
|
|
__radd__ (self,
other)
|
|
__repr__ (self)
|
|
__setitem__ (self,
key,
item)
|
|
__str__ (self)
|
|
__unicode__ (self)
|
|
append (self,
item)
|
|
astext (self)
|
|
attlist (self)
|
|
delattr (self,
attr)
|
|
emptytag (self)
|
|
endtag (self)
|
|
extend (self,
item)
|
|
first_child_matching_class (self,
childclass,
start,
end)
Return the index of the first child whose class exactly matches. |
|
first_child_not_matching_class (self,
childclass,
start,
end)
Return the index of the first child whose class does not match. |
|
get (self,
key,
failobj)
|
|
get_children (self)
Return this element's children. |
|
has_key (self,
attr)
|
|
hasattr (self,
attr)
|
|
index (self,
item)
|
|
insert (self,
index,
item)
|
|
pformat (self,
indent,
level)
Return an indented pseudo-XML representation, for test purposes. |
|
pop (self,
i)
|
|
remove (self,
item)
|
|
replace (self,
old,
new)
Replace one child Node with another child or children. |
|
set_class (self,
name)
Add a new name to the "class" attribute. |
|
setdefault (self,
key,
failobj)
|
|
shortrepr (self)
|
|
starttag (self)
|
|
_dom_node (self,
domroot)
|
Inherited from Node |
|
__nonzero__ (self)
Node instances are always true, even if they're empty. |
|
setup_child (self,
child)
|
|
walk (self,
visitor)
Traverse a tree of Node objects, calling visit_... methods of
visitor when entering each node. |
|
walkabout (self,
visitor)
Perform a tree traversal similarly to Node.walk() (which see),
except also call depart_... methods before exiting each node. |