lpod.note

class lpod.note.odf_annotation(native_element, cache=None)

Bases: lpod.element.odf_element

check_validity()
get_body()
set_body(text_or_element)
class lpod.note.odf_note(native_element, cache=None)

Bases: lpod.element.odf_element

check_validity()
get_body()
get_citation()
get_class()
get_id()
set_body(text_or_element)
set_citation(text)
set_class(note_class)
set_id(note_id, *args, **kw)
lpod.note.odf_create_annotation(text_or_element=None, creator=None, date=None)

Create an annotation element credited to the given creator with the given text, optionally dated (current date by default).

Arguments:

text – unicode or odf_element

creator – unicode

date – datetime

Return: odf_element

lpod.note.odf_create_note(note_class='footnote', note_id=None, citation=None, body=None)

Create either a footnote or a endnote element with the given text, optionally referencing it using the given note_id.

Arguments:

note_class – ‘footnote’ or ‘endnote’

note_id – str

citation – unicode

body – unicode or odf_element

Return: odf_element

Previous topic

lpod.meta

Next topic

lpod.paragraph

This Page