A note on portability
Last modified:
05/19/2006 07:57 AM
| Author: |
Jean-Marc Orliaguet <jmo@ita.chalmers.se> |
| Revision: |
cpsportlets-portability.txt 30516 2005-12-12 19:47:36Z dkuhlman |
Notes on widgets:
- CMF-compatible skins are stored in skins/cpsportlets_widgets.
- CPS3-specific skins are stored in skins/cpsportlets_widgets_cps3.
- Plone2-specific skins are stored in skins/cpsportlets_widgets_plone2.
The CPS3 (or the Plone2) skin is installed on top of the CMF skin.
- The page templates are used for the presentation. They should be
generic and cross-platform unless the presentation differs
between platforms.
- The python scripts are used to prepare the data that will be
presented.
Specific implementations (CPS3/Plone) should be done in the
scripts not in the page templates.
For instance we write:
with the getData.py file located in skins/cpsportlets_widgets, in
skins/cpsportlets_widgets_plone2 and in skins/cpsportlets_widgets_cps3.
Instead of:
- showData.pt:
<div tal:define="data here/getCPSData" tal:content="data/title" />
i18n is compatible. Use Localizer (not for a long time) if Localizer is
present. Otherwise, the po are PlacelessTranslationService compliant.
You'll need either to install the build package CPS4CMFPlone or
either install the following:
- CPSchemas
- CPSDocument
- CPSInstaller
Check the DEPENDENCIES.txt file within this product for the
version after which the compatibility is OK.
|