rst2odt: take a context to configure it
rst2odt: take a context to configure it

When you write your own convert method, e.g.:

>>> def convert_note(node, context):
>>>   ...

You can use it only in the current context, e.g.:

>>> context['convert_note'] = convert_note

Or for the whole conversion process, e.g.:

>>> context = make_context(document, convert_note=convert_note)

Or for the time of the process execution using, e.g.:

register_convert_method('note', convert_note)

Agicia/lpod-python,Agicia/lpod-python