pyams_content.component.illustration
package ⊞¶
-
class
pyams_content.component.illustration.
BasicIllustration
[source]¶ Bases:
persistent.Persistent
,zope.container.contained.Contained
Illustration persistent class
-
alt_title
¶ Accessibility title: Alternate title used to describe image content
Author: Name of picture’s author
-
data
¶
-
title
¶ Legend
-
-
class
pyams_content.component.illustration.
Illustration
[source]¶ Bases:
pyams_content.features.renderer.RenderedContentMixin
,pyams_content.component.illustration.BasicIllustration
Illustration persistent class
-
description
¶ Associated text: Illustration description displayed in front-office templates
-
renderer
¶ Illustration template: Presentation template used for illustration
-
-
class
pyams_content.component.illustration.
IllustrationContentChecker
(context)[source]¶ Bases:
pyams_content.features.checker.BaseContentChecker
Illustration content checker
-
label
= 'Illustration'¶
-
weight
= 40¶
-
-
class
pyams_content.component.illustration.
IllustrationNamespace
(context)[source]¶ Bases:
pyams_utils.adapter.ContextAdapter
++illustration++ namespace adapter
-
class
pyams_content.component.illustration.
IllustrationRendererVocabulary
(context=None)[source]¶ Bases:
pyams_content.features.renderer.RenderersVocabulary
Illustration renderers vocabulary
-
content_interface
= <InterfaceClass pyams_content.component.illustration.interfaces.IIllustration>¶
-
-
class
pyams_content.component.illustration.
IllustrationSublocations
(context)[source]¶ Bases:
pyams_utils.adapter.ContextAdapter
Illustration sub-locations adapter
-
class
pyams_content.component.illustration.
VirtualIllustration
(source)[source]¶ Bases:
object
Virtual illustration based on image file
-
alt_title
= None¶
-
data
¶
-
title
= None¶
-
-
pyams_content.component.illustration.
basic_illustration_factory
(context)[source]¶ Basic illustration factory
-
pyams_content.component.illustration.
handle_added_illustration
(event)[source]¶ Handle added illustration
-
pyams_content.component.illustration.
handle_modified_illustration
(event)[source]¶ Handle modified illustration
-
pyams_content.component.illustration.
illustration_target_content_checker
(context)[source]¶ Illustration target content checker
-
pyams_content.component.illustration.
link_illustration_factory
(context)[source]¶ Link illustration factory
-
pyams_content.component.illustration.
update_illustration_properties
(illustration)[source]¶ Update missing file properties
Subpackages¶
pyams_content.component.illustration.interfaces
¶
-
interface
pyams_content.component.illustration.interfaces.
IBasicIllustration
[source]¶ Basic illustration interface
-
data
¶ Image or video data
Image or video content
Implementation: pyams_i18n.schema.I18nThumbnailMediaField
Read Only: False Required: False Default Value: None Allowed Type: dict
Key Type
Implementation: zope.schema.TextLine
Read Only: False Required: True Default Value: None Allowed Type: str
Value Type
Implementation: pyams_file.schema.ThumbnailMediaField
Read Only: False Required: False Default Value: None Allowed Type: bytes
-
has_data
(self)¶ Check if data is provided in any language
-
title
¶ Legend
Implementation: pyams_i18n.schema.I18nTextLineField
Read Only: False Required: False Default Value: None Allowed Type: dict
Key Type
Implementation: zope.schema.TextLine
Read Only: False Required: True Default Value: None Allowed Type: str
Value Type
Implementation: zope.schema.TextLine
Read Only: False Required: False Default Value: None Allowed Type: str
-
alt_title
¶ Accessibility title
Alternate title used to describe image content
Implementation: pyams_i18n.schema.I18nTextLineField
Read Only: False Required: False Default Value: None Allowed Type: dict
Key Type
Implementation: zope.schema.TextLine
Read Only: False Required: True Default Value: None Allowed Type: str
Value Type
Implementation: zope.schema.TextLine
Read Only: False Required: False Default Value: None Allowed Type: str
Author
Name of picture’s author
Implementation: zope.schema.TextLine
Read Only: False Required: False Default Value: None Allowed Type: str
-
-
interface
pyams_content.component.illustration.interfaces.
IBasicIllustrationTarget
[source]¶ Extends:
pyams_content.component.illustration.interfaces.IIllustrationTargetBase
Basic illustration target marker interface
-
interface
pyams_content.component.illustration.interfaces.
IIllustration
[source]¶ Extends:
pyams_content.component.illustration.interfaces.IBasicIllustration
,pyams_content.features.renderer.interfaces.IRenderedContent
Illustration paragraph
-
description
¶ Associated text
Illustration description displayed in front-office templates
Implementation: pyams_i18n.schema.I18nTextField
Read Only: False Required: False Default Value: None Allowed Type: dict
Key Type
Implementation: zope.schema.TextLine
Read Only: False Required: True Default Value: None Allowed Type: str
Value Type
Implementation: zope.schema.Text
Read Only: False Required: False Default Value: None Allowed Type: str
-
renderer
¶ Illustration template
Presentation template used for illustration
Implementation: zope.schema.Choice
Read Only: False Required: True Default Value: ‘default’
-
-
interface
pyams_content.component.illustration.interfaces.
IIllustrationParagraph
[source]¶ Extends:
pyams_content.component.illustration.interfaces.IIllustration
,pyams_content.component.paragraph.interfaces.IBaseParagraph
Illustration paragraph
-
data
¶ Image or video data
Image or video content
Implementation: pyams_i18n.schema.I18nThumbnailMediaField
Read Only: False Required: True Default Value: None Allowed Type: dict
Key Type
Implementation: zope.schema.TextLine
Read Only: False Required: True Default Value: None Allowed Type: str
Value Type
Implementation: pyams_file.schema.ThumbnailMediaField
Read Only: False Required: False Default Value: None Allowed Type: bytes
-
-
interface
pyams_content.component.illustration.interfaces.
IIllustrationTarget
[source]¶ Extends:
pyams_content.component.illustration.interfaces.IBasicIllustrationTarget
Illustration target interface
-
interface
pyams_content.component.illustration.interfaces.
IIllustrationTargetBase
[source]¶ Extends:
zope.annotation.interfaces.IAttributeAnnotatable
Illustration target base interface
-
interface
pyams_content.component.illustration.interfaces.
ILinkIllustration
[source]¶ Extends:
pyams_content.component.illustration.interfaces.IBasicIllustration
Navigation link illustration interface
-
interface
pyams_content.component.illustration.interfaces.
ILinkIllustrationTarget
[source]¶ Extends:
pyams_content.component.illustration.interfaces.IIllustrationTargetBase
Link illustration target interface
pyams_content.component.illustration.paragraph
¶
pyams_content.component.illustration.thesaurus
¶
-
class
pyams_content.component.illustration.thesaurus.
IllustrationThesaurusExtension
[source]¶ Bases:
object
Illustration thesaurus extension
-
icon
= '<i class="fa fa-fw fa-file-image-o"></i>'¶
-
label
= 'Illustration'¶
-
target_interface
= <InterfaceClass pyams_content.component.illustration.interfaces.IBasicIllustrationTarget>¶
-
target_view
= 'illustration-dialog.html'¶
-
weight
= 20¶
-