Screen#

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

Provides the screen element.

Methods

Screen.find(_type[, terms])

Find the first type matching a given type string.

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

Find all types matching a given type string.

Screen.get(entry)

Get an item from an element.

Screen.has_children()

Return wether the element has children.

Screen.print_tree()

Print the tree.

Screen.rec_find(_type[, terms])

Find the first type matching a given type string recursively.

Screen.to_rst([prefix, links, base_url, fcache])

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

Screen.types_repr()

Return the string types.

Attributes

Screen.added

Has the revision flag added.

Screen.any_isalnum

Returns True if any characters are alphanumeric.

Screen.children

Children of the tree.

Screen.content

Text content.

Screen.id

ID of the element.

Screen.next_elem

Next element.

Screen.prev_elem

Previous element.

Screen.raw

Raw string of the element.

Screen.tag

Element tag.

Screen.tail

Tail of the element as a string.

Screen.text_content

Text content.

Screen.title

Element title.

Screen.tostring

Attributes of the element as a dictionary.