src/pyams_content/shared/topic/interfaces.py
changeset 1384 cdf63a1c7dc9
parent 1310 2302a43f55b0
equal deleted inserted replaced
1383:2cfeb340dacf 1384:cdf63a1c7dc9
     8 # WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
     8 # WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
     9 # WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
     9 # WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
    10 # FOR A PARTICULAR PURPOSE.
    10 # FOR A PARTICULAR PURPOSE.
    11 #
    11 #
    12 
    12 
    13 __docformat__ = 'restructuredtext'
       
    14 
       
    15 from zope.interface import Interface
    13 from zope.interface import Interface
    16 from zope.schema import Choice
    14 from zope.schema import Choice
    17 
    15 
    18 from pyams_content.shared.common.interfaces import ISharedContent
    16 from pyams_content.shared.common.interfaces import ISharedContent, ISharedToolPortalContext, \
    19 from pyams_content.shared.common.interfaces.types import ITypedSharedToolPortalContext, \
    17     IWfSharedContentPortalContext
    20     IWfTypedSharedContentPortalContext, DATA_TYPES_VOCABULARY
    18 from pyams_content.shared.common.interfaces.types import DATA_TYPES_VOCABULARY
    21 from pyams_sequence.interfaces import IInternalReferencesList
    19 from pyams_sequence.interfaces import IInternalReferencesList
       
    20 
       
    21 
       
    22 __docformat__ = 'restructuredtext'
    22 
    23 
    23 from pyams_content import _
    24 from pyams_content import _
    24 
    25 
    25 
    26 
    26 TOPIC_CONTENT_TYPE = 'topic'
    27 TOPIC_CONTENT_TYPE = 'topic'
    27 TOPIC_CONTENT_NAME = _("Topic")
    28 TOPIC_CONTENT_NAME = _("Topic")
    28 
    29 
    29 
    30 
    30 class ITopicManager(ITypedSharedToolPortalContext):
    31 class ITopicManager(ISharedToolPortalContext):
    31     """Topic manager interface"""
    32     """Topic manager interface"""
    32 
    33 
    33 
    34 
    34 class ITopicManagerFactory(Interface):
    35 class ITopicManagerFactory(Interface):
    35     """Topic manager factory interface"""
    36     """Topic manager factory interface"""
    36 
    37 
    37 
    38 
    38 class IWfTopic(IWfTypedSharedContentPortalContext, IInternalReferencesList):
    39 class IWfTopic(IWfSharedContentPortalContext, IInternalReferencesList):
    39     """Topic interface"""
    40     """Topic interface"""
    40 
    41 
    41     data_type = Choice(title=_("Data type"),
    42     data_type = Choice(title=_("Data type"),
    42                        description=_("Type of content data"),
    43                        description=_("Type of content data"),
    43                        required=False,
    44                        required=False,