Source code for ploneintranet.docconv.client.interfaces

# -*- coding: utf-8 -*-
"""Module where all interfaces, events and exceptions live."""

from OFS.interfaces import IItem
from plone.theme.interfaces import IDefaultPloneLayer
from zope.interface import Attribute
from zope.interface import Interface


[docs]class IPloneintranetDocconvClientLayer(IDefaultPloneLayer): """Marker interface that defines a Zope 3 browser layer."""
[docs]class IFileWrapper(Interface): has_enclosure = Attribute("If object has enclosure") file = Attribute("BlobWrapper or NamedFile") file_length = Attribute("File size") file_type = Attribute("File mime type") blob = Attribute("ZODB blob") filename = Attribute("Filename")
[docs]class IPreviewSettings(Interface): """ Annotated Settings to store preview generation config """ last_modified = Attribute("Last modified") num_pages = Attribute("Num pages") successfully_converted = Attribute("Successfully converted") filehash = Attribute("File hash")
[docs]class IBlobFileWrapper(IItem): pass