pyams_content.component.gallery package ⊞¶
Subpackages¶
pyams_content.component.gallery.file¶
pyams_content.component.gallery.interfaces¶
-
interface
pyams_content.component.gallery.interfaces.IBaseGallery[source]¶ Extends:
zope.container.interfaces.IOrderedContainer,zope.annotation.interfaces.IAttributeAnnotatable,pyams_content.features.renderer.interfaces.IRenderedContentBase gallery interface
-
renderer¶ Gallery template
Presentation template used for this gallery
Implementation: zope.schema.ChoiceRead Only: False Required: True Default Value: ‘default’
-
append(self, value, notify=True)¶ Append new file to gallery
@param value: the media object to append @param boolean notify: if ‘False’, the given value object is pre-located so that
adding events are not notified
-
get_visible_medias(self)¶ Get iterator over visible medias
-
-
interface
pyams_content.component.gallery.interfaces.IGallery[source]¶ Extends:
pyams_content.component.gallery.interfaces.IBaseGalleryGallery interface
-
__setitem__(key, value)¶ Add the given object to the container under the given name.
Raises a
TypeErrorif the key is not a unicode or ascii string.Raises a
ValueErrorif the key is empty, or if the key contains a character which is not allowed in an object name.Raises a
KeyErrorif the key violates a uniqueness constraint.The container might choose to add a different object than the one passed to this method.
If the object doesn’t implement IContained, then one of two things must be done:
- If the object implements ILocation, then the IContained interface must be declared for the object.
- Otherwise, a ContainedProxy is created for the object and stored.
The object’s __parent__ and __name__ attributes are set to the container and the given name.
If the old parent was
None, then an IObjectAddedEvent is generated, otherwise, an IObjectMovedEvent is generated. An IContainerModifiedEvent is generated for the container.If the object replaces another object, then the old object is deleted before the new object is added, unless the container vetos the replacement by raising an exception.
If the object’s __parent__ and __name__ were already set to the container and the name, then no events are generated and no hooks. This allows advanced clients to take over event generation.
-
title¶ Title
Gallery title, as shown in front-office
Implementation: pyams_i18n.schema.I18nTextLineFieldRead Only: False Required: False Default Value: None Allowed Type: dictKey Type
Implementation: zope.schema.TextLineRead Only: False Required: True Default Value: None Allowed Type: strValue Type
Implementation: zope.schema.TextLineRead Only: False Required: False Default Value: None Allowed Type: str
-
description¶ Description
Gallery description displayed by front-office template
Implementation: pyams_i18n.schema.I18nTextFieldRead Only: False Required: False Default Value: None Allowed Type: dictKey Type
Implementation: zope.schema.TextLineRead Only: False Required: True Default Value: None Allowed Type: strValue Type
Implementation: zope.schema.TextRead Only: False Required: False Default Value: None Allowed Type: str
-
-
interface
pyams_content.component.gallery.interfaces.IGalleryFile[source]¶ Extends:
pyams_content.component.gallery.interfaces.IGalleryItemGallery file marker interface
-
data¶ Image or video data
Image or video content
Implementation: pyams_file.schema.MediaFieldRead Only: False Required: True Default Value: None Allowed Type: bytes
-
title¶ Legend
Implementation: pyams_i18n.schema.I18nTextLineFieldRead Only: False Required: False Default Value: None Allowed Type: dictKey Type
Implementation: zope.schema.TextLineRead Only: False Required: True Default Value: None Allowed Type: strValue Type
Implementation: zope.schema.TextLineRead Only: False Required: False Default Value: None Allowed Type: str
-
alt_title¶ Accessibility title
Alternate title used to describe media content
Implementation: pyams_i18n.schema.I18nTextLineFieldRead Only: False Required: False Default Value: None Allowed Type: dictKey Type
Implementation: zope.schema.TextLineRead Only: False Required: True Default Value: None Allowed Type: strValue Type
Implementation: zope.schema.TextLineRead Only: False Required: False Default Value: None Allowed Type: str
-
description¶ Associated text
Media description displayed in front-office templates
Implementation: pyams_i18n.schema.I18nTextFieldRead Only: False Required: False Default Value: None Allowed Type: dictKey Type
Implementation: zope.schema.TextLineRead Only: False Required: True Default Value: None Allowed Type: strValue Type
Implementation: zope.schema.TextRead Only: False Required: False Default Value: None Allowed Type: str
Author
Name of document’s author
Implementation: zope.schema.TextLineRead Only: False Required: True Default Value: None Allowed Type: str
-
sound¶ Audio data
Sound file associated with the current media
Implementation: pyams_file.schema.AudioFieldRead Only: False Required: False Default Value: None Allowed Type: bytes
-
sound_title¶ Sound title
Title of associated sound file
Implementation: pyams_i18n.schema.I18nTextLineFieldRead Only: False Required: False Default Value: None Allowed Type: dictKey Type
Implementation: zope.schema.TextLineRead Only: False Required: True Default Value: None Allowed Type: strValue Type
Implementation: zope.schema.TextLineRead Only: False Required: False Default Value: None Allowed Type: str
-
sound_description¶ Sound description
Short description of associated sound file
Implementation: pyams_i18n.schema.I18nTextFieldRead Only: False Required: False Default Value: None Allowed Type: dictKey Type
Implementation: zope.schema.TextLineRead Only: False Required: True Default Value: None Allowed Type: strValue Type
Implementation: zope.schema.TextRead Only: False Required: False Default Value: None Allowed Type: str
-
visible¶ Visible media?
If ‘no’, this media won’t be displayed in front office
Implementation: zope.schema.BoolRead Only: False Required: True Default Value: True Allowed Type: bool
-
-
interface
pyams_content.component.gallery.interfaces.IGalleryItem[source]¶ Gallery item base interface
-
__parent__¶ Implementation: zope.schema.FieldRead Only: False Required: True Default Value: None
-
-
interface
pyams_content.component.gallery.interfaces.IGalleryParagraph[source]¶ Extends:
pyams_content.component.gallery.interfaces.IBaseGallery,pyams_content.component.paragraph.interfaces.IBaseParagraphGallery paragraph