Skip to main content

pod (Python Open Document) : template engine to generate ODT documents

Project description

* This package is deprecated! Use package ‘Appy’ instead *

Introduction

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.

Changelog

0.3.0 [2009-03-25]

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())

0.2.1 (2008-06-04)

0.2.0 (2008-03-23)

0.1.0 (2008-03-10)

Project details


Release history Release notifications

This version
History Node

0.3.0

History Node

0.2.1

History Node

0.2.0

History Node

0.1.0

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
appy.pod-0.3.0-py2.4.egg (118.0 kB) Copy SHA256 hash SHA256 Egg 2.4 Sep 30, 2009

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page