Commit 03e7b0c1 authored by Ivan Tyagov's avatar Ivan Tyagov

Moved to abstract class.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@37107 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent ce04fd8b
...@@ -77,6 +77,9 @@ DEFAULT_DISPLAY_ID_LIST = ('nano', 'micro', 'thumbnail', ...@@ -77,6 +77,9 @@ DEFAULT_DISPLAY_ID_LIST = ('nano', 'micro', 'thumbnail',
DEFAULT_QUALITY = 75 DEFAULT_QUALITY = 75
DEFAULT_CONTENT_TYPE = 'text/html'
class SnapshotMixin: class SnapshotMixin:
""" """
This class provides a generic API to store in the ZODB This class provides a generic API to store in the ZODB
......
...@@ -33,7 +33,7 @@ from zLOG import LOG, WARNING ...@@ -33,7 +33,7 @@ from zLOG import LOG, WARNING
from Products.CMFCore.utils import getToolByName from Products.CMFCore.utils import getToolByName
from Products.CMFCore.utils import _setCacheHeaders, _ViewEmulator from Products.CMFCore.utils import _setCacheHeaders, _ViewEmulator
from Products.ERP5Type import Permissions, PropertySheet from Products.ERP5Type import Permissions, PropertySheet
from Products.ERP5.Document.Document import Document, ConversionError from Products.ERP5.Document.Document import Document, ConversionError, _MARKER, DEFAULT_CONTENT_TYPE
from Products.ERP5.Document.File import File from Products.ERP5.Document.File import File
from Products.ERP5Type.WebDAVSupport import TextContent from Products.ERP5Type.WebDAVSupport import TextContent
import re import re
...@@ -46,9 +46,6 @@ try: ...@@ -46,9 +46,6 @@ try:
except ImportError: except ImportError:
from Products.ERP5Type.patches.string import Template from Products.ERP5Type.patches.string import Template
DEFAULT_CONTENT_TYPE = 'text/html'
_MARKER = []
class TextDocument(CachedConvertableMixin, BaseConvertableFileMixin, class TextDocument(CachedConvertableMixin, BaseConvertableFileMixin,
TextContent, File): TextContent, File):
"""A TextDocument impletents IDocument, IFile, IBaseConvertable, ICachedconvertable """A TextDocument impletents IDocument, IFile, IBaseConvertable, ICachedconvertable
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment