TBody#

class pyconverter.xml2py.ast_tree.TBody(element, parse_children=True)#

Provides the tbody element.

Methods

TBody.find(_type[, terms])

Find the first type matching a given type string.

TBody.find_all(_type[, recursive, terms])

Find all types matching a given type string.

TBody.get(entry)

Get an item from an element.

TBody.has_children()

Return wether the element has children.

TBody.print_tree()

Print the tree.

TBody.rec_find(_type[, terms])

Find the first type matching a given type string recursively.

TBody.to_rst(l_head[, prefix, links, base_url])

Return a list to enable converting the element to an RST format.

TBody.types_repr()

Return the string types.

Attributes

TBody.added

Has the revision flag added.

TBody.any_isalnum

Returns True if any characters are alphanumeric.

TBody.children

Children of the tree.

TBody.content

Text content.

TBody.id

ID of the element.

TBody.next_elem

Next element.

TBody.prev_elem

Previous element.

TBody.raw

Raw string of the element.

TBody.rows

"Return all the row elements found in the TBody element.

TBody.tag

Element tag.

TBody.tail

Tail of the element as a string.

TBody.text_content

Text content.

TBody.title

Element title.

TBody.tostring

Attributes of the element as a dictionary.