src/pyams_content/shared/news/interfaces/__init__.py
changeset 114 7799437055f1
parent 17 eb468be7c127
child 492 04503227569d
--- a/src/pyams_content/shared/news/interfaces/__init__.py	Wed Jul 12 11:54:43 2017 +0200
+++ b/src/pyams_content/shared/news/interfaces/__init__.py	Wed Jul 12 11:55:25 2017 +0200
@@ -19,9 +19,6 @@
 from pyams_content.shared.common.interfaces import ISharedTool, IWfSharedContent, ISharedContent
 
 # import packages
-from zope.interface import Attribute
-from zope.schema import Choice, Datetime
-from zope.schema.vocabulary import SimpleVocabulary, SimpleTerm
 
 from pyams_content import _
 
@@ -30,16 +27,6 @@
 NEWS_CONTENT_NAME = _("News topic")
 
 
-DISPLAY_FIRST_VERSION = 'first'
-DISPLAY_CURRENT_VERSION = 'current'
-
-VERSION_DISPLAY = {DISPLAY_FIRST_VERSION: _("Display first version date"),
-                   DISPLAY_CURRENT_VERSION: _("Display current version date")}
-
-VERSION_DISPLAY_VOCABULARY = SimpleVocabulary([SimpleTerm(v, title=t)
-                                               for v, t in VERSION_DISPLAY.items()])
-
-
 class INewsManager(ISharedTool):
     """News manager interface"""
 
@@ -47,20 +34,6 @@
 class IWfNewsEvent(IWfSharedContent):
     """News event interface"""
 
-    displayed_publication_date = Choice(title=_("Displayed publication date"),
-                                        description=_("The matching date will be displayed in front-office"),
-                                        vocabulary='PyAMS news publication date',
-                                        default=DISPLAY_FIRST_VERSION,
-                                        required=True)
-
-    publication_date = Attribute("Publication date")
-
-    push_end_date = Datetime(title=_("Push end date"),
-                             description=_("Some contents can be pushed by components to front-office pages; if you "
-                                           "set a date here, this content will not be pushed anymore passed this "
-                                           "date, but will still be available via the search engine"),
-                             required=False)
-
 
 class INewsEvent(ISharedContent):
     """Workflow managed news event interface"""