Changed base class of review comments view
authorThierry Florac <thierry.florac@onf.fr>
Mon, 20 Jun 2016 15:54:32 +0200
changeset 46 54e9500c3a00
parent 45 74b7fbb59a92
child 47 de12e7f11dad
Changed base class of review comments view
src/pyams_content/shared/common/zmi/review.py
--- a/src/pyams_content/shared/common/zmi/review.py	Mon Jun 20 12:27:04 2016 +0200
+++ b/src/pyams_content/shared/common/zmi/review.py	Mon Jun 20 15:54:32 2016 +0200
@@ -33,7 +33,6 @@
 from pyams_form.schema import CloseButton
 from pyams_pagelet.pagelet import pagelet_config
 from pyams_security.schema import PrincipalsSet
-from pyams_skin.page import InnerPage
 from pyams_skin.viewlet.menu import MenuItem
 from pyams_skin.viewlet.toolbar import ToolbarMenuItem
 from pyams_template.template import template_config, get_view_template
@@ -41,6 +40,7 @@
 from pyams_utils.registry import get_utility, query_utility
 from pyams_viewlet.viewlet import viewlet_config
 from pyams_zmi.form import AdminDialogAddForm
+from pyams_zmi.view import InnerAdminView
 from pyramid.view import view_config
 from z3c.form import field, button
 from zope.interface import Interface
@@ -172,7 +172,7 @@
 @pagelet_config(name='review-comments.html', context=IWfSharedContent, layer=IPyAMSLayer,
                 permission=COMMENT_CONTENT_PERMISSION)
 @template_config(template='templates/review-comments.pt', layer=IPyAMSLayer)
-class SharedContentReviewCommentsView(InnerPage):
+class SharedContentReviewCommentsView(InnerAdminView):
     """Shared content review comments view"""
 
     legend = _("Review comments")