redomino.odttransforms
It register a new portal transforms that let you generate odt files for a given .odt template.
This products is very simple: it just interpolates odt variables with the given ones you pass calling the transformer. Therefore it performs just variable substitutions, not a real odt templating processor. No external bynaries are needed, it depends on http://ooopy.sourceforge.net/.
Tested with ooopy version 1.8.10901.
This plugin is meant for developers, it could be used for generating odt files, write a custom PloneFormGen adapter, etc.
Usage
Example:
>>> from zope.component import getUtility
>>> from Products.PortalTransforms.interfaces import IPortalTransformsTool
>>> file_contents = open('your odt file with variables').read() # see redomino/odttransforms/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()
Tests
Test status:
How to launch tests:
$ ./bin/test -m redomino.odttransforms
Changelog
0.4 (2014-02-07)
Added more tests [davidemoro]
Added uninstall profile [davidemoro]
0.3 (2014-02-07)
Moved all txt/md files to rst (trying to make happy both pypi and github) [davidemoro]
Added more specific classifiers to setup.py [davidemoro]
Added CI support with Travis [davidemoro]
0.2 (2014-02-06)
Fixed MANIFEST.in. [davidemoro]
0.1 (2014-02-06)
Initial release [davidemoro]
Metadata
Release files for redomino.odttransforms 0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| redomino.odttransforms-0.4.zip | 30.8 kB | Without provenance | Details |
Release files / redomino.odttransforms-0.4.zip
| Download URL | redomino.odttransforms-0.4.zip |
|---|---|
| Size | 30.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a08d346ee0aeceb4072b3c42ad87b40fe655a0d938c0e830c72f0ca6198b2454
|
|
BLAKE2b-256 checksum How to use checksums |
2bc707413f070bd3efae657c7ba5331c6643f4f26eaefaf9c670f868371b4018
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for redomino.odttransforms 0.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.