Entry#

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

Provides the entry element.

Methods

Entry.find(_type[, terms])

Find the first type matching a given type string.

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

Find all types matching a given type string.

Entry.get(entry)

Get an item from an element.

Entry.has_children()

Return wether the element has children.

Entry.print_tree()

Print the tree.

Entry.rec_find(_type[, terms])

Find the first type matching a given type string recursively.

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

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

Entry.types_repr()

Return the string types.

Attributes

Entry.added

Has the revision flag added.

Entry.any_isalnum

Returns True if any characters are alphanumeric.

Entry.children

Children of the tree.

Entry.content

Text content.

Entry.id

ID of the element.

Entry.morerows

Value for the morerows parameter contained in the entry element.

Entry.next_elem

Next element.

Entry.prev_elem

Previous element.

Entry.raw

Raw string of the element.

Entry.tag

Element tag.

Entry.tail

Tail of the element as a string.

Entry.text_content

Text content.

Entry.title

Element title.

Entry.tostring

Attributes of the element as a dictionary.