Skip to main content

MIME based content transformations

Project description

Introduction

This Zope product provides two new tools for the CMF in order to make MIME types based transformations on the portal contents, and so an easy to way to plugin some new transformations for previously unsupported content types. The provided tools are :

portal_transform (the transform tool)

handle transformation of data from a mime type to another

A bunch of ready to use transformations are also provided. Look at the documentation for more information.

Notice this package can also be used as a standalone Python package. If you’ve downloaded the Python distribution, you can’t make it a Zope product since Zope files have been removed from this distribution.

This product is an off-spring of the Archetypes project.

Authors

Benjamin Saller <bcsaller@yahoo.com> Sidnei da Silva <sidnei@x3ng.com> Sylvain Thenault <sylvain.thenault@logilab.fr>

Changelog

1.6.5 - 2009-12-24

1.6.4 - 2009-10-08

  • Clean up temporary files/directories after memory errors and failed conversions. [witsch]

1.6.3 - 2009-09-09

  • The safe_html parser would silently drop CDATA sections due to a bug in SGMLParser. Apply a fix originally found in BeautifulSoup. [optilude]

1.6.2 - 2009-06-18

  • Fix NameError in the purgeCache method. [davisagli]

  • Fix the way that unsafe transforms calls the input file for the command line plugin. [encolpe]

  • Make markdown transformation unicode safe and depend on Markdown>=1.7 [tomster]

1.6.1 - 2008-09-30

  • Fixed rest tests when run on Zope 2.11. The raw and include directives are disabled but no longer removed. [hannosch]

  • Disabled markdown and textile tests when their libraries aren’t installed [fschulze]

  • Implemented entity conversion in html to plain text transform. [fschulze]

  • Added metadata.xml file to the profile. [hannosch]

  • Allowed the abbr, acronym, var, dfn, samp, address, bdo, thead, tfoot, col, and colgroup tags by default, since they are harmless, valid XHTML and shouldn’t be filtered. Fixes: http://dev.plone.org/plone/ticket/6712 and http://dev.plone.org/plone/ticket/7251 [limi]

  • Added proper Z3 interfaces and added direct implements statements instead of applying the changes later on with zcml. Reduced number of zcml files to one. [hannosch]

1.6.0 - 2007-08-16

1.6.0-rc2 - 2007-07-27

  • Updated componentregisty.xml to new style. [hannosch]

1.6.0-rc1 - 2007-07-04

1.6.0-b4 - 2007-04-28

  • Go back to using getToolByName for CMF tools. [wichert]

1.6.0-b3 - 2007-03-20

  • Removed tests/runalltests.py and tests/framework.py as they have outlived their usefulness. To run tests use Zope’s testrunner: ./bin/zopectl test –nowarn -s Products.PortalTransforms [stefan]

1.6.0-b2 - 2007-03-05

  • Adjusted rest tests for Zope 2.10 output. [hannosch]

1.6.0-b1 - 2007-02-27

  • XXX Please use HISTORY.txt when you make changes

1.6.0-a1 - 2007-02-06

  • Implemented PLIP 149 [tomster]

1.5.2 - Unreleased

  • Add another XSS fix from for handling extraneous brackets. [dunny]

  • Add XSS fixes from Anton Stonor to safe_html transform. [alecm, stonor]

1.5.1-final - 2007-04-17

  • note for release-managers: The version-bump to 1.5 was a bit early, but now as we have it, i keep it and next release number in the cycle needed for Archetypes 1.4.2 (used for Plone 2.5.2) of PortalTransforms is then the 1.5 final. We dont need increasing of release numbers because of Plone 3.0, Archetypes 1.5, … if theres no change in the dependen product, like this one. [jensens]

1.5.0-final - 2006-12-15

1.5.0-a1 - 2006-10-25

  • casting to int is evil without previous check of the type. so we assume as in CMFPlone just zero for non-int-castable values. [jensens]

  • the values in the safe_html valid tag dictionary can become strings when modifying them via the ZMI. Explicitly convert them to integers before testing their value. [wichert]

1.4.1-final - 2006-09-08

  • Shut down a noisy logging message to DEBUG level. [hannosch]

  • Converted logging infrastructure from zLOG usage to Python’s logging module. [hannosch]

  • Avoid DeprecationWarning for manageAddDelete. [hannosch]

  • Spring-cleaning of tests infrastructure. [hannosch]

1.4.0-beta1 - 2006-03-26

  • removed odd archetypes 1.3 style version checking [jensens]

  • Removed BBB code for CMFCorePermissions import location. [hannosch]

  • removed deprecation-warning for ToolInit [jensens]

1.3.9-final02 - 2006-01-15

  • nothing - the odd version checking needs a version change to stick to Archetypes version. [yenzenz]

1.3.9-RC1 - 2005-12-29

  • Fixed [ 1293684 ], unregistered Transforms are not unmaped, Transformation was deleted from portal_transforms, but remained active. http://sourceforge.net/tracker/index.php?func-detail&aid-1293684&group_id-75272&atid-543430 Added a cleanup that unmaps deleted transforms on reinstall [csenger]

  • Replaced the safe_html transformation with a configurable version with the same functionality. Migration is handled on reinstall. http://trac.plone.org/plone/ticket/4538 [csenger] [dreamcatcher]

  • Removed CoUnInitialize call. According to Mark Hammond: The right thing to do is call that function, although almost noone does (including pywin32 itself, which does CoInitialize the main thread) and I’ve never heard of problem caused by this omission. [sidnei]

  • Fix a long outstanding issue with improper COM thread model initialization. Initialize COM for multi-threading, ignoring any errors when someone else has already initialized differently. https://trac.plone.org/plone/ticket/4712 [sidnei]

  • Correct some wrong security settings. [hannosch]

  • Fixed the requirements look-up from the policy (#1358085)

1.3.8-final02 - 2005-10-11

  • nothing - the odd version checking needs a version change to stick to Archetypes version. [yenzenz]

1.3.7-final01 - 2005-08-30

  • nothing - the odd version checking needs a version change to stick to Archetypes version. [yenzenz]

1.3.6-final02 - 2005-08-07

  • nothing - the odd version checking needs a version change to stick to Archetypes version. [yenzenz]

1.3.6-final - 2005-08-01

  • Added q to the list of valid and safe html tags by limi’s request. Wrote test for safe_html parsing. [hannosch]

  • Added ins and del to the list of valid and safe html tags. [ 1199917 ] XHTML DEL tag is removed during the safe_html conversion [tiran]

1.3.5-final02 - 2005-07-17

  • changed version to stick to appropiate Archetypes Version. [yenzenz]

1.3.5-final - 2005-07-06

  • pdf_to_html can show images now. Revert it to command transformer and make it work under windows. [panjunyong]

  • refined command based unsafe transform to make it work with windows. [panjunyong]

  • Disabled office_uno by default because it doesn’t support multithread yet [panjunyong]

  • Rewrote office_uno to make it work for the recent PyUNO. [panjunyong]

1.3.4-final01 - 2005-05-20

  • nothing (I hate to write this. But the odd version checking needs it). [yenzenz]

1.3.4-rc1 - 2005-03-25

  • Better error handling for safe html transformation [tiran]

1.3.3-final - 2005-03-05

  • Updated link to rtf converter to http://freshmeat.net/projects/rtfconverter/ [tiran]

  • Small fix for the com office converter. COM could crash if word is invisible. Also a pop up might appeare when quitting word. [gogo]

  • Fixed [ 1053846 ] Charset problem with wvware word_to_html conversion [flacoste]

  • Fixed python and test pre transforms to use html quote special characters. Thx to stain. [ 1091670 ] Python source code does not escape HTML. [tiran]

  • Fixed [ 1121812 ] fix PortalTransforms unregisterTransformation() unregisterTransformation() misses to remove from the zodb the persistance wrapper added to the trasformation [dan_t]

  • Fixed [ 1118739 ] popentransform does not work on windows [duncanb]

  • Fixed [ 1122175 ] extra indnt sytax error in office_uno.py [ryuuguu]

  • fixed bug with some transformers’ temp filename: it tried to use original filename which is encoded in utf8 and may contrain invalid charset for my Windows server. Just use filename as: unknown.suffix [panjunyong]

  • STX header level is set to 2 instead of using zope.conf. Limi forced me to change it. [tiran]

  • fixed bug: word_to_html uses office_com under windows

1.3.2-5 - 2004-10-17

  • Fixed [ 1041637 ] RichWidget: STX level should be set to 3 instead 1. The structured text transform is now using the zope.conf option or has an optional level paramenter in the convert method. [tiran]

  • Added win32api.GetShortPathName to libtransforms/commandtransform so binaries found in directories which have spaces in their names will work as expected [runyaga]

1.3.2-4 - 2004-09-30

  • nothing changed

1.3.2-3 - 2004-09-25

  • Fixed more unit tests [tiran]

1.3.2-2 - 2004-09-17

  • Fixed [ 1025066 ] Serious persistency bug [dmaurer]

  • Fixed some unit tests failurs. Some unit tests did fail because the reST and STX output has changed slightly. [tiran]

  • Don’t include the first three lines of the lynx output which are url, title and a blank line. This fixed also a unit test because the url which was a file in the fs did change every time. [tiran]

  • Fixed a bug in make_unpersistent. It seemed that this method touched values inside the mapping. [dreamcatcher]

1.3.2-1 - 2004-09-04

  • Disabled filters that were introduced in 1.3.1-1. The currently used transform path algo is broken took too long to find a path. [tiran]

  • Cleaned up major parts of PT by removing the python only implementation which was broken anyway

  • Fixed [ 1019632 ] current svn bundle (rev 2942) broken

1.3.1-1 - 2004-08-16

  • Introduce the concept of filters (one-hop transforms where the source and destination are the same mimetype). [dreamcatcher]

  • Add a html filter to extract the content of the body tag (so we don’t get a double <body> when uploading full html files). [dreamcatcher]

  • Change base class for Transform to SimpleItem which is equivalent to the previous base classes and provides a nice __repr__. [dreamcatcher]

  • Lower log levels. [dreamcatcher]

  • cache.py: Added purgeCache, fixed has cache test. [tiran]

  • Fixed non critical typo in error message: Unvalid -> Invalid [tiran]

1.3.0-3 - 2004-08-06

  • Added context to the convert, convertTo and __call__ methods. The context is the object on which the transform was called. [tiran]

  • Added isCacheable flag and setCacheable to idatastream (data.py). Now you can disable the caching of the result of a transformation. [tiran]

  • Added __setstate__ to load new transformations from the file system. [tiran]

  • Fixed [ 1002014 ] Add policy screen doesn’t accept single entry [tiran]

1.3.0-2 - 2004-07-29

  • Added workaround for [ 997998 ] PT breaks ZMI/Find [tiran]

Project details


Download files

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

Source Distribution

Products.PortalTransforms-1.6.5.zip (248.5 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page