merge default doc-dc
authorDamien Correia
Wed, 20 Jun 2018 12:21:27 +0200
branchdoc-dc
changeset 93 f7da4f6817e2
parent 92 7fc18ab1b5b4 (diff)
parent 90 06915aa059c5 (current diff)
child 94 92e2a6a91a96
merge default
--- a/src/source/howto-renderer.rst	Tue Jun 19 16:11:57 2018 +0200
+++ b/src/source/howto-renderer.rst	Wed Jun 20 12:21:27 2018 +0200
@@ -24,7 +24,7 @@
 
     # New custom contact paragraph renderer
 
-    @adapter_config(name='custom', context=(IContactParagraph, IPyAMSLayer), provides=IContentRenderer)
+    @adapter_config(name='custom', context=(IContactParagraph, IPyAMSLayer), provides=ISharedContentRenderer)
     @template_config(template='templates/contact-custom.pt', layer=IPyAMSLayer)
     class ContactParagraphCustomRenderer(ContactParagraphDefaultRenderer):
         """Context paragraph custom renderer"""
@@ -34,7 +34,7 @@
 
 
 In this example, we have defined an adapter named 'custom' with :py:class:`IContactParagraph`,
-:py:class:`IPyAMSLayer` as context and provides :py:class:`IContentRenderer` interface.
+:py:class:`IPyAMSLayer` as context and provides :py:class:`ISharedContentRenderer` interface.
 
 Using ``@template_config()`` decorator, the renderer will be displayed in html container according to the template
 
@@ -50,7 +50,7 @@
 2. Create a new Renderer from scratch
 -------------------------------------
 
-We can define a new settings interface for the renderer, to do that we start by creating an interface
+We can define a new settings for the renderer, to do that we start by creating an interface:
 
 
 a) Create setting interface for the renderer
@@ -117,7 +117,7 @@
 
 .. code-block:: python
 
-    @adapter_config(context=(IContactParagraph, IPyAMSLayer), provides=IContentRenderer)
+    @adapter_config(context=(IContactParagraph, IPyAMSLayer), provides=ISharedContentRenderer)
     @template_config(template='templates/contact-custom.pt', layer=IPyAMSLayer)
     class PhotoRenderer(BaseContentRenderer):
         """Context paragraph custom renderer"""