src/pyams_content/component/gallery/interfaces/__init__.py
changeset 426 ad309e5090bd
parent 407 0ef5de2d5674
child 429 fafbf6bb246e
equal deleted inserted replaced
425:a3147e47cd39 426:ad309e5090bd
    30 
    30 
    31 from pyams_content import _
    31 from pyams_content import _
    32 
    32 
    33 
    33 
    34 GALLERY_CONTAINER_KEY = 'pyams_content.gallery'
    34 GALLERY_CONTAINER_KEY = 'pyams_content.gallery'
       
    35 GALLERY_RENDERERS = 'PyAMS.gallery.renderers'
    35 
    36 
    36 
    37 
    37 class IGalleryItem(Interface):
    38 class IGalleryItem(Interface):
    38     """Gallery item base interface"""
    39     """Gallery item base interface"""
    39 
    40 
    98                                 description=_("Gallery description displayed by front-office template"),
    99                                 description=_("Gallery description displayed by front-office template"),
    99                                 required=False)
   100                                 required=False)
   100 
   101 
   101     renderer = Choice(title=_("Gallery template"),
   102     renderer = Choice(title=_("Gallery template"),
   102                       description=_("Presentation template used for this gallery"),
   103                       description=_("Presentation template used for this gallery"),
   103                       vocabulary='PyAMS gallery renderers',
   104                       vocabulary=GALLERY_RENDERERS,
   104                       default='hidden')
   105                       default='hidden')
   105 
   106 
   106     def append(self, value, notify=True):
   107     def append(self, value, notify=True):
   107         """Append new file to gallery
   108         """Append new file to gallery
   108 
   109