TGroup#

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

Provides the tgroup element, which contains the header and body rows of a table.

Methods

TGroup.find(_type[, terms])

Find the first type matching a given type string.

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

Find all types matching a given type string.

TGroup.get(entry)

Get an item from an element.

TGroup.has_children()

Return wether the element has children.

TGroup.print_tree()

Print the tree.

TGroup.rec_find(_type[, terms])

Find the first type matching a given type string recursively.

TGroup.to_rst([prefix, links, base_url])

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

TGroup.types_repr()

Return the string types.

Attributes

TGroup.added

Has the revision flag added.

TGroup.any_isalnum

Returns True if any characters are alphanumeric.

TGroup.children

Children of the tree.

TGroup.content

Text content.

TGroup.id

ID of the element.

TGroup.n_col

Number of columns.

TGroup.next_elem

Next element.

TGroup.prev_elem

Previous element.

TGroup.raw

Raw string of the element.

TGroup.row_in_tbody

List of the rows in the TBody.

TGroup.tag

Element tag.

TGroup.tail

Tail of the element as a string.

TGroup.tbody

TBody.

TGroup.text_content

Text content.

TGroup.thead

THead.

TGroup.title

Element title.

TGroup.tostring

Attributes of the element as a dictionary.