src/pyams_content/shared/news/zmi/properties.py
changeset 114 7799437055f1
parent 113 05caef75bac3
child 115 67a6a3b92612
--- a/src/pyams_content/shared/news/zmi/properties.py	Wed Jul 12 11:54:43 2017 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,41 +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.shared.news.interfaces import IWfNewsEvent
-from pyams_form.interfaces.form import IInnerSubForm
-from pyams_skin.layer import IPyAMSLayer
-
-# import packages
-from pyams_content.shared.common.zmi.properties import SharedContentPropertiesEditForm
-from pyams_utils.adapter import adapter_config
-from pyams_zmi.form import InnerAdminEditForm
-from z3c.form import field
-
-from pyams_content import _
-
-
-@adapter_config(name='publication',
-                context=(IWfNewsEvent, IPyAMSLayer, SharedContentPropertiesEditForm),
-                provides=IInnerSubForm)
-class NewsEventPropertiesEditForm(InnerAdminEditForm):
-    """News event properties edit form extension"""
-
-    legend = _("Publication settings")
-    fieldset_class = 'bordered no-x-margin margin-y-10'
-
-    fields = field.Fields(IWfNewsEvent).select('displayed_publication_date', 'push_end_date')