{ "info": { "author": "Davide Moro", "author_email": "davide.moro@redomino.com", "bugtrack_url": null, "classifiers": [ "Framework :: Plone", "Intended Audience :: Developers", "License :: OSI Approved :: GNU General Public License (GPL)", "Programming Language :: Python", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Topic :: Text Processing" ], "description": "redomino.appytransforms\n=======================\n\nIt registers a new portal transforms that let you dynamically generate odt or ods files for a given template.\n\nThis product is based on http://appyframework.org/pod.html\n\nSince it aims to generate native LibreOffice/OpenOffice formats, it is not necessary running libre office in server mode.\n\nThis plugin is meant for developers, it could be used for generating dynamic odt/ods files, write a custom PloneFormGen adapter, etc.\n\nUsage\n-----\n\nExample::\n\n >>> from zope.component import getUtility\n >>> from Products.PortalTransforms.interfaces import IPortalTransformsTool\n >>> file_contents = open('your odt file with variables').read() # see redomino/appytransforms/tests/input.odt\n >>> portal_transforms = getUtility(IPortalTransformsTool)\n >>> converter = portal_transforms.convertTo(target_mimetype='application/vnd.oasis.opendocument.text.transformed',\n >>> orig=file_contents,\n >>> mimetype='application/vnd.oasis.opendocument.text',\n >>> mapper=dict(plone_version='4.3.2-sunny-day-beta'),\n >>> )\n >>> transformed_odt_contents = converter.getData()\n\nappy.pod's tips and limitations\n-------------------------------\n\nTips and appy.pod's limitations.\n\nOdt files:\n\n* use the \"Edit\" -> \"Changes\" -> \"Record\" in order to display vars\n* conditional text fields seems to be not supported (as far as I can see), use comments with do text if expr instead\n* libreoffice does not support comments on single words (see http://ask.libreoffice.org/en/question/5256/comments-in-writer/), so it seems that you'll have to the only way to \n* repeating list items, it does not works as expected\n\nOds files:\n\n* don't use the \"Edit\" -> \"Changes\" -> \"Record\" on ods files!\n* 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']\"\n* 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)\n\nappy's documentation is awful: if you are in trouble trying to get working ODT/ODS templates check out the tests doc https://github.com/redomino/redomino.appytransforms/tree/master/redomino/appytransforms/tests\n\nTests\n-----\n\nTest status:\n\n.. image:: https://secure.travis-ci.org/redomino/redomino.appytransforms.png\n :target: https://travis-ci.org/redomino/redomino.appytransforms\n\nHow to launch tests::\n\n $ ./bin/test -m redomino.appytransforms\n\n\nAuthors\n-------\n\n* Davide Moro \n\n\nChangelog\n=========\n\n0.1 (2014-02-24)\n----------------\n\n- First release\n [davidemoro]", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/redomino/redomino.appytransforms", "keywords": "plone", "license": "GPL", "maintainer": null, "maintainer_email": null, "name": "redomino.appytransforms", "package_url": "https://pypi.org/project/redomino.appytransforms/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/redomino.appytransforms/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/redomino/redomino.appytransforms" }, "release_url": "https://pypi.org/project/redomino.appytransforms/0.1/", "requires_dist": null, "requires_python": null, "summary": "ODT/ODS templating transforms for Plone", "version": "0.1" }, "last_serial": 1010377, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "6d38a3dfb853bf4de1c366cc5fb61765", "sha256": "63ca696575a796cc284990ec393acc904d0c907839f583dcfc2c0962bafbb560" }, "downloads": -1, "filename": "redomino.appytransforms-0.1.zip", "has_sig": false, "md5_digest": "6d38a3dfb853bf4de1c366cc5fb61765", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 69955, "upload_time": "2014-02-24T16:00:01", "url": "https://files.pythonhosted.org/packages/5f/0a/99aee4fdc6fbf61e2fed0334019f6dd1ec653d223648523dea611ebb86bc/redomino.appytransforms-0.1.zip" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "6d38a3dfb853bf4de1c366cc5fb61765", "sha256": "63ca696575a796cc284990ec393acc904d0c907839f583dcfc2c0962bafbb560" }, "downloads": -1, "filename": "redomino.appytransforms-0.1.zip", "has_sig": false, "md5_digest": "6d38a3dfb853bf4de1c366cc5fb61765", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 69955, "upload_time": "2014-02-24T16:00:01", "url": "https://files.pythonhosted.org/packages/5f/0a/99aee4fdc6fbf61e2fed0334019f6dd1ec653d223648523dea611ebb86bc/redomino.appytransforms-0.1.zip" } ] }