CPSTramline README

Author: Georges Racinet

Contents

This product integrates CPS with Infrae Tramline.

Requirement: CPS 3.4.x, with CPSSchemas >= 1.7.1

It defines CPSTramlineFileField and CPSTramlineFileWidget as well as mixin classes to easily enhance fields and widgets derived from CPSField and CPSAttachedFileWidget with tramline capability.

CPS can access the content from the tramline repository for further processing, as provided, e.g, by PortalTransforms.

There are two configuration profiles:

1   IMPORTANT: LIMITATIONS

2   INSTALLATION

3   EXISTING CONTENT

Existing content will be served as before. Any modification going through a Tramline aware widget will store the new content within Tramline.

4   TRAMLINING CUSTOM WIDGETS

Any widget whose input field has been tramlined will have to be tramline-aware, which can be done by applying the TramlineMixin class - put it first in the inheritance.

This product provides the builtin "Tramline Attached File Widget", for immediate use and as an example.

Check how it's been defined in widgets.py to learn how to apply the mixin class to your own widget classes, assuming that they do inherit from CPSFileWidget.