# HG changeset patch # User Thierry Florac # Date 1466430799 -7200 # Node ID 92e1f675035cfee996423c8fce271bea13cf3219 # Parent 6d1fb0659e7af930087441718b87fc8698d8e641 Added inner admin view base class diff -r 6d1fb0659e7a -r 92e1f675035c src/pyams_zmi/view.py --- a/src/pyams_zmi/view.py Wed Jun 15 12:43:54 2016 +0200 +++ b/src/pyams_zmi/view.py Mon Jun 20 15:53:19 2016 +0200 @@ -17,6 +17,7 @@ # import interfaces from pyams_form.interfaces.form import IFormCreatedEvent from pyams_pagelet.interfaces import IPageletCreatedEvent +from pyams_skin.interfaces import IInnerPage from pyams_zmi.interfaces import IAdminView from pyams_zmi.layer import IAdminLayer @@ -33,6 +34,11 @@ layer = IAdminLayer +@implementer(IInnerPage) +class InnerAdminView(AdminView): + """Inner admin view""" + + @subscriber(IPageletCreatedEvent, context_selector=IAdminView) def handle_admin_view(event): """Set skin for admin views"""