pod (Python Open Document) : template engine to generate ODT documents
* This package is deprecated! Use package ‘Appy’ instead *
pod (python open document) is a library that allows to easily generate documents whose content is dynamic.
The principle is simple: you create an ODF (Open Document Format) text document (with OpenOffice Writer 2.0 or higher for example), you insert some Python code at some places inside it, and from any program written in Python, you can call pod with, as input, the OpenDocument file and a bunch of Python objects. pod generates another ODF text document (ODT) that contains the desired result. If you prefer to get the result in another format, pod can call OpenOffice in server mode to generate the result in PDF, DOC, RTF or TXT format.
new function “document” that allows to integrate, in a pod template, the content of an external document or image.
converter.py: instead of asking to OpenOffice to convert an odt file into pdf, doc, etc, converter.py can now ask to update an odt document (refresh indexes and table of contents, resolve external links). Resolving external links is needed if you use the new “document” function (excepted for images and pdfs).
new boolean parameter to the renderer: “forceOoCall”. If True, OpenOffice will be contacted in server mode even if the result is asked in odt. This way, OpenOffice will update indexes and resolve external links. Set this parameter to True when using the new “document” function.
you may now create pod templates with OpenOffice 3.x (parsing problem with notes is solved)
OO conversion: connection to OO in server mode under Windows solved (“import socket” before “import uno”)
instruction “do … for …’ accepts now all Python objects implementing the iterator protocol, like iterators from Django query sets (querySet.iterator())