Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

ODT/ODS templating transforms for Plone

Project Description


It registers a new portal transforms that let you dynamically generate odt or ods files for a given template.

This product is based on

Since it aims to generate native LibreOffice/OpenOffice formats, it is not necessary running libre office in server mode.

This plugin is meant for developers, it could be used for generating dynamic odt/ods files, write a custom PloneFormGen adapter, etc.



>>> from zope.component import getUtility
>>> from Products.PortalTransforms.interfaces import IPortalTransformsTool
>>> file_contents = open('your odt file with variables').read()     # see redomino/appytransforms/tests/input.odt
>>> portal_transforms = getUtility(IPortalTransformsTool)
>>> converter = portal_transforms.convertTo(target_mimetype='application/vnd.oasis.opendocument.text.transformed',
>>>                                        orig=file_contents,
>>>                                        mimetype='application/vnd.oasis.opendocument.text',
>>>                                        mapper=dict(plone_version='4.3.2-sunny-day-beta'),
>>>                                       )
>>> transformed_odt_contents = converter.getData()

appy.pod’s tips and limitations

Tips and appy.pod’s limitations.

Odt files:

  • use the “Edit” -> “Changes” -> “Record” in order to display vars
  • conditional text fields seems to be not supported (as far as I can see), use comments with do text if expr instead
  • libreoffice does not support comments on single words (see, so it seems that you’ll have to the only way to
  • repeating list items, it does not works as expected

Ods files:

  • don’t use the “Edit” -> “Changes” -> “Record” on ods files!
  • repeat rows adding a comment on the first cell with “do row for person in persons” and put dynamic content putting into the cell value =”person[‘age’]”
  • if you want to pass a single variable and displaying it into a single cell use the followind syntax into the cell value =”variable_name” (not as a comment)

appy’s documentation is awful: if you are in trouble trying to get working ODT/ODS templates check out the tests doc


Test status:

How to launch tests:

$ ./bin/test -m redomino.appytransforms



0.1 (2014-02-24)

  • First release [davidemoro]
Release History

Release History

This version
History Node


Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date (70.0 kB) Copy SHA256 Checksum SHA256 Source Feb 24, 2014

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting