src/pyams_content/features/renderer/interfaces/__init__.py
changeset 395 2a39b333a585
child 413 052c4fd067f8
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/pyams_content/features/renderer/interfaces/__init__.py	Thu Feb 15 15:08:29 2018 +0100
@@ -0,0 +1,44 @@
+#
+# Copyright (c) 2008-2015 Thierry Florac <tflorac AT ulthar.net>
+# All Rights Reserved.
+#
+# This software is subject to the provisions of the Zope Public License,
+# Version 2.1 (ZPL).  A copy of the ZPL should accompany this distribution.
+# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
+# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
+# FOR A PARTICULAR PURPOSE.
+#
+
+__docformat__ = 'restructuredtext'
+
+
+# import standard library
+
+# import interfaces
+from zope.annotation import IAttributeAnnotatable
+from zope.contentprovider.interfaces import IContentProvider
+
+# import packages
+from zope.interface import Interface, Attribute
+
+
+class IRenderedContent(IAttributeAnnotatable):
+    """Generic interface for any rendered content"""
+
+    renderer = Attribute("Selected renderer name")
+
+    def get_renderer(self, request=None):
+        """Get selected renderer implementation"""
+
+
+class IContentRenderer(IContentProvider):
+    """Content renderer interface"""
+
+    label = Attribute("Renderer label")
+
+    target_interface = Attribute("Renderer target interface")
+
+
+class IRendererSettings(Interface):
+    """Base renderer settings interface"""