From 5c510642d17c02b8fa57ae1a550f9c6997cebc20 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9rome=20Perrin?= <jerome@nexedi.com> Date: Mon, 25 Sep 2017 03:29:51 +0000 Subject: [PATCH] TextDocument: enable text content history support This way, code mirror shows the history of editions. --- product/ERP5/Document/TextDocument.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/product/ERP5/Document/TextDocument.py b/product/ERP5/Document/TextDocument.py index 2b74cddb6a..86bf743ace 100644 --- a/product/ERP5/Document/TextDocument.py +++ b/product/ERP5/Document/TextDocument.py @@ -42,6 +42,7 @@ from string import Template # Mixin Import from Products.ERP5.mixin.cached_convertable import CachedConvertableMixin from Products.ERP5.mixin.base_convertable import BaseConvertableFileMixin +from Products.ERP5Type.mixin.text_content_history import TextContentHistoryMixin from Products.ERP5Type.Utils import guessEncodingFromText from lxml import html as etree_html @@ -49,7 +50,7 @@ from lxml import etree from Products.ERP5Type.ImageUtil import transformUrlToDataURI -class TextDocument(CachedConvertableMixin, BaseConvertableFileMixin, +class TextDocument(CachedConvertableMixin, BaseConvertableFileMixin, TextContentHistoryMixin, TextContent, File): """A TextDocument impletents IDocument, IFile, IBaseConvertable, ICachedconvertable and ITextConvertable -- 2.30.9