diff --git a/product/PortalTransforms/transforms/rest.py b/product/PortalTransforms/transforms/rest.py index 5720b00c02ede717d825b0953661ee71e7bc2f57..267be5611e0923a6561e1ba996dd710726db6f9a 100644 --- a/product/PortalTransforms/transforms/rest.py +++ b/product/PortalTransforms/transforms/rest.py @@ -2,6 +2,7 @@ from Products.PortalTransforms.interfaces import ITransform from zope.interface import implements from reStructuredText import HTML import sys +import os class rest: r"""Converts from reST to HTML. @@ -56,9 +57,11 @@ class rest: input_encoding = kwargs.get('input_encoding', encoding) output_encoding = kwargs.get('output_encoding', encoding) language = kwargs.get('language', 'en') - warnings = kwargs.get('warnings', None) + warnings = kwargs.get('warnings', None) + rest_template = os.path.join(os.path.dirname(__file__), 'rest.template') settings = {'documentclass': '', 'traceback': 1, + 'template' : rest_template } html = HTML(orig, report_level=2, diff --git a/product/PortalTransforms/transforms/rest.template b/product/PortalTransforms/transforms/rest.template new file mode 100644 index 0000000000000000000000000000000000000000..2591bce35df27881babf301965d4cad230b0c2a0 --- /dev/null +++ b/product/PortalTransforms/transforms/rest.template @@ -0,0 +1,8 @@ +%(head_prefix)s +%(head)s +%(stylesheet)s +%(body_prefix)s +%(body_pre_docinfo)s +%(docinfo)s +%(body)s +%(body_suffix)s