diff -r 12ad545bc649 -r 9395a088cd46 src/pyams_content/shared/common/zmi/summary.py --- a/src/pyams_content/shared/common/zmi/summary.py Mon Sep 17 17:37:46 2018 +0200 +++ b/src/pyams_content/shared/common/zmi/summary.py Tue Sep 18 15:40:16 2018 +0200 @@ -9,39 +9,38 @@ # WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS # FOR A PARTICULAR PURPOSE. # -from pyams_content.shared.common.interfaces.types import IWfTypedSharedContent -from pyams_sequence.interfaces import ISequentialIdInfo __docformat__ = 'restructuredtext' # import standard library +from z3c.form import field +from z3c.form.interfaces import DISPLAY_MODE, IDataConverter +from zope.interface import implementer, Interface + +from pyams_content import _ # import interfaces from pyams_content.shared.common.interfaces import IWfSharedContent, IWfSharedContentRoles, IBaseSharedTool +from pyams_content.shared.common.interfaces.types import IWfTypedSharedContent +# import packages +from pyams_content.shared.common.zmi.header import SharedContentHeaderContentProvider from pyams_form.interfaces.form import IWidgetForm, IInnerTabForm, IInnerSubForm +from pyams_pagelet.pagelet import pagelet_config +from pyams_security.utility import get_principal +from pyams_sequence.interfaces import ISequentialIdInfo from pyams_skin.interfaces import IInnerPage from pyams_skin.layer import IPyAMSLayer -from pyams_utils.interfaces import VIEW_SYSTEM_PERMISSION -from pyams_workflow.interfaces import IWorkflowState, IWorkflow, IWorkflowPublicationInfo, IWorkflowStateHistoryItem, \ - IWorkflowVersions -from z3c.form.interfaces import DISPLAY_MODE, IDataConverter - -# import packages -from pyams_content.shared.common.zmi.header import SharedContentHeaderContentProvider -from pyams_pagelet.pagelet import pagelet_config -from pyams_security.utility import get_principal from pyams_utils.adapter import adapter_config from pyams_utils.date import format_datetime +from pyams_utils.interfaces import VIEW_SYSTEM_PERMISSION from pyams_utils.timezone import tztime from pyams_utils.traversing import get_parent from pyams_utils.url import absolute_url from pyams_viewlet.viewlet import contentprovider_config +from pyams_workflow.interfaces import IWorkflowState, IWorkflow, IWorkflowPublicationInfo, IWorkflowStateHistoryItem, \ + IWorkflowVersions from pyams_zmi.form import AdminDisplayForm, InnerAdminDisplayForm, InnerAdminAddForm -from z3c.form import field -from zope.interface import implementer, Interface - -from pyams_content import _ @pagelet_config(name='summary.html', context=IWfSharedContent, layer=IPyAMSLayer, permission=VIEW_SYSTEM_PERMISSION)