menhir.contenttype.photoalbum

Dolmen contenttype extension : photoalbum
Download

menhir.contenttype.photoalbum Ranking & Summary

Advertisement

  • Rating:
  • License:
  • GPL
  • Publisher Name:
  • Souheil Chelfouh

menhir.contenttype.photoalbum Tags


menhir.contenttype.photoalbum Description

Dolmen contenttype extension : photoalbum menhir.contenttype.photoalbum is a module that provides a single content type usable to display images as a collection. The content type has two different rendering views, allowing to render the images as static thumbnails or as an animated gallery.InterfacesThe menhir.contenttype.photoalbum IPhotoAlbum interface extendes IContainer from zope.container:>>> from zope.container.interfaces import IContainer>>> from menhir.contenttype.photoalbum import IPhotoAlbum>>> IPhotoAlbum.isOrExtends(IContainer)TrueThe IPhotoAlbum interface defines a containership contraint, allowing only IImage contents, from menhir.contenttype.image:>>> from menhir.contenttype.photoalbum import PhotoAlbum>>> album = PhotoAlbum(title=u"My nice images")>>> from zope.container.constraints import checkObject>>> checkObject(album, 'temporary', object())Traceback (most recent call last):...InvalidItemType: (< menhir.contenttype.photoalbum.album.PhotoAlbum ... >,< object object at ... >, (< InterfaceClass menhir.contenttype...IImage >,))A PhotoAlbum object provides the IPhotoAlbum interface but also the IViewSelector interface, defining the name of the view used to render the object:>>> IPhotoAlbum.providedBy(album)True>>> from dolmen.app.viewselector import IViewSelector>>> IViewSelector.providedBy(album)True Requirements: · Python What's New in This Release: · Fixed the animated gallery page for Galleriffic 2.0.1-1.


menhir.contenttype.photoalbum Related Software