src/pyams_content/shared/imagemap/zmi/preview.py
changeset 487 093f201e3168
parent 486 cb67e71dafff
child 488 826448236ec9
--- a/src/pyams_content/shared/imagemap/zmi/preview.py	Thu Mar 15 12:06:23 2018 +0100
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,39 +0,0 @@
-#
-# Copyright (c) 2008-2015 Thierry Florac <tflorac AT ulthar.net>
-# All Rights Reserved.
-#
-# This software is subject to the provisions of the Zope Public License,
-# Version 2.1 (ZPL).  A copy of the ZPL should accompany this distribution.
-# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
-# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
-# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
-# FOR A PARTICULAR PURPOSE.
-#
-
-__docformat__ = 'restructuredtext'
-
-
-# import standard library
-
-# import interfaces
-from pyams_content.component.association.interfaces import IAssociationInfo
-from pyams_content.features.preview.zmi.interfaces import IPreviewForm
-from pyams_content.shared.imagemap.interfaces import IWfImageMap
-from pyams_form.interfaces.form import IWidgetsSuffixViewletsManager
-from pyams_skin.layer import IPyAMSLayer
-from pyams_utils.interfaces import VIEW_SYSTEM_PERMISSION
-
-# import packages
-from pyams_template.template import template_config
-from pyams_viewlet.viewlet import viewlet_config
-
-
-@viewlet_config(name='imagemap-preview', context=IWfImageMap, layer=IPyAMSLayer,
-                view=IPreviewForm, manager=IWidgetsSuffixViewletsManager,
-                permission=VIEW_SYSTEM_PERMISSION, weight=100)
-@template_config(template='templates/preview.pt', layer=IPyAMSLayer)
-class ImagemapPreview(object):
-    """Image map preview"""
-
-    def get_item_info(self, item):
-        return IAssociationInfo(item, None)