src/pyams_content/shared/site/interfaces.py
changeset 1384 cdf63a1c7dc9
parent 1289 2d7b57b22904
child 1420 f2cc8872bcc1
equal deleted inserted replaced
1383:2cfeb340dacf 1384:cdf63a1c7dc9
     7 # THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
     7 # THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
     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 from pyams_content.shared.common.interfaces.types import DATA_TYPES_VOCABULARY
       
    13 
    12 
    14 
    13 __docformat__ = 'restructuredtext'
    15 __docformat__ = 'restructuredtext'
    14 
    16 
    15 from collections import OrderedDict
    17 from collections import OrderedDict
    16 
    18 
   147 
   149 
   148 
   150 
   149 class IWfSiteTopic(IWfTopic, IInternalReferencesList):
   151 class IWfSiteTopic(IWfTopic, IInternalReferencesList):
   150     """Site topic interface"""
   152     """Site topic interface"""
   151 
   153 
       
   154     data_type = Choice(title=_("Data type"),
       
   155                        description=_("Type of content data"),
       
   156                        required=False,
       
   157                        vocabulary=DATA_TYPES_VOCABULARY)
       
   158 
   152 
   159 
   153 class IWfSiteTopicFactory(IWfTopicFactory):
   160 class IWfSiteTopicFactory(IWfTopicFactory):
   154     """Topic factory interface"""
   161     """Topic factory interface"""
   155 
   162 
   156 
   163