UserInput#

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

Provides the user input element.

Methods

UserInput.find(_type[, terms])

Find the first type matching a given type string.

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

Find all types matching a given type string.

UserInput.get(entry)

Get an item from an element.

UserInput.has_children()

Return wether the element has children.

UserInput.print_tree()

Print the tree.

UserInput.rec_find(_type[, terms])

Find the first type matching a given type string recursively.

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

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

UserInput.types_repr()

Return the string types.

Attributes

UserInput.added

Has the revision flag added.

UserInput.any_isalnum

Returns True if any characters are alphanumeric.

UserInput.children

Children of the tree.

UserInput.content

Text content.

UserInput.id

ID of the element.

UserInput.next_elem

Next element.

UserInput.prev_elem

Previous element.

UserInput.raw

Raw string of the element.

UserInput.tag

Element tag.

UserInput.tail

Tail of the element as a string.

UserInput.text_content

Text content.

UserInput.title

Element title.

UserInput.tostring

Attributes of the element as a dictionary.