Use preview layout for paragraphs
authorThierry Florac <thierry.florac@onf.fr>
Wed, 13 Jun 2018 15:33:19 +0200
changeset 47 db22c6d39349
parent 46 4a5ec7e82ac8
child 48 96671284e86d
Use preview layout for paragraphs
src/pyams_default_theme/component/paragraph/__init__.py
--- a/src/pyams_default_theme/component/paragraph/__init__.py	Wed Jun 13 14:50:33 2018 +0200
+++ b/src/pyams_default_theme/component/paragraph/__init__.py	Wed Jun 13 15:33:19 2018 +0200
@@ -22,7 +22,7 @@
 from pyams_utils.interfaces import VIEW_SYSTEM_PERMISSION
 
 # import packages
-from pyams_default_theme.page import BaseIndexPage
+from pyams_default_theme.page import BasePreviewPage
 from pyams_pagelet.pagelet import pagelet_config
 from zope.interface import implementer
 
@@ -30,7 +30,7 @@
 @pagelet_config(name='preview.html', context=IBaseParagraph, layer=IPyAMSDefaultLayer,
                 permission=VIEW_SYSTEM_PERMISSION)
 @implementer(IPreviewView)
-class ParagraphPreviewPage(BaseIndexPage):
+class ParagraphPreviewPage(BasePreviewPage):
     """Paragraph preview page"""
 
     def __init__(self, context, request):