Refname#

class pyconverter.xml2py.ast_tree.Refname(element, terms=None)#

Provides the refname element which contains the name of a reference.

Methods

Refname.find(_type[, terms])

Find the first type matching a given type string.

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

Find all types matching a given type string.

Refname.get(entry)

Get an item from an element.

Refname.has_children()

Return wether the element has children.

Refname.print_tree()

Print the tree.

Refname.rec_find(_type[, terms])

Find the first type matching a given type string recursively.

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

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

Refname.types_repr()

Return the string types.

Attributes

Refname.added

Has the revision flag added.

Refname.any_isalnum

Returns True if any characters are alphanumeric.

Refname.args

Command arguments.

Refname.children

Children of the tree.

Refname.content

Text content.

Refname.id

ID of the element.

Refname.next_elem

Next element.

Refname.prev_elem

Previous element.

Refname.raw

Raw string of the element.

Refname.raw_args

Raws containing the command arguments.

Refname.tag

Element tag.

Refname.tail

Tail of the element as a string.

Refname.terms

Terms of the element.

Refname.text_content

Text content.

Refname.title

Element title.

Refname.tostring

Attributes of the element as a dictionary.