src/pyams_content/profile/interfaces/__init__.py
changeset 558 d9c6b1d7fefa
parent 8 4a2b5dd3d69b
equal deleted inserted replaced
557:a78ade534b97 558:d9c6b1d7fefa
    14 
    14 
    15 
    15 
    16 # import standard library
    16 # import standard library
    17 
    17 
    18 # import interfaces
    18 # import interfaces
       
    19 from zope.annotation.interfaces import IAttributeAnnotatable
    19 
    20 
    20 # import packages
    21 # import packages
    21 from zope.interface import Interface
       
    22 from zope.schema import Choice, List, TextLine
    22 from zope.schema import Choice, List, TextLine
    23 
    23 
    24 from pyams_content import _
    24 from pyams_content import _
    25 
    25 
    26 
    26 
    27 ADMIN_PROFILE_KEY = 'pyams_content.admin_profile'
    27 ADMIN_PROFILE_KEY = 'pyams_content.admin_profile'
    28 
    28 
    29 
    29 
    30 class IAdminProfile(Interface):
    30 class IAdminProfile(IAttributeAnnotatable):
    31     """User admin profile preferences"""
    31     """User admin profile preferences"""
    32 
    32 
    33     favorites = List(title=_("User favorites"),
    33     favorites = List(title=_("User favorites"),
    34                      description=_("List of internal numbers of shared contents stored for quick access"),
    34                      description=_("List of internal numbers of shared contents stored for quick access"),
    35                      value_type=TextLine())
    35                      value_type=TextLine())