- -
-

pyams_content.component.paragraph package

- -
-

Submodules

-
-
-

pyams_content.component.paragraph.container module

-
-
-class pyams_content.component.paragraph.container.ParagraphContainer
-

Bases: pyams_utils.container.BTreeOrderedContainer

-

Paragraphs container

-
-
-append(value)
-
- -
-
-last_id = 1
-
- -
- -
-
-class pyams_content.component.paragraph.container.ParagraphContainerChecker(context)
-

Bases: pyams_content.features.checker.BaseContentChecker

-

Paragraphs container checker

-
-
-inner_check(request)
-
- -
-
-label = 'Paragraphs'
-
- -
-
-sep = '\n'
-
- -
-
-weight = 10
-
- -
- -
-
-class pyams_content.component.paragraph.container.ParagraphContainerNamespace(context)
-

Bases: pyams_utils.adapter.ContextAdapter

-

++paras++ namespace adapter

-
-
-traverse(name, furtherpath=None)
-
- -
- -
-
-class pyams_content.component.paragraph.container.ParagraphContainerSublocations(context)
-

Bases: pyams_utils.adapter.ContextAdapter

-

Paragraphs container sublocations

-
-
-sublocations()
-
- -
- -
-
-pyams_content.component.paragraph.container.paragraph_container_factory(target)
-

Paragraphs container factory

-
- -
-
-

pyams_content.component.paragraph.header module

-
-
-class pyams_content.component.paragraph.header.HTMLParagraphFactory
-

Bases: object

-

HTML paragraph factory

-
-
-content_type
-

alias of HeaderParagraph

-
- -
-
-name = 'Header paragraph'
-
- -
- -
-
-class pyams_content.component.paragraph.header.HeaderParagraph
-

Bases: pyams_content.component.paragraph.BaseParagraph

-

Header paragraph

-
-
-header
-

Computed attributes based on schema fields

-

Field properties provide default values, data validation and error messages -based on data found in field meta-data.

-

Note that FieldProperties cannot be used with slots. They can only -be used for attributes stored in instance dictionaries.

-
- -
-
-icon_class = 'fa-header'
-
- -
-
-icon_hint = 'Header'
-
- -
-
-title
-
- -
- -
-
-class pyams_content.component.paragraph.header.HeaderParagraphContentChecker(context)
-

Bases: pyams_content.component.paragraph.BaseParagraphContentChecker

-

Header paragraph content checker

-
-
-inner_check(request)
-
- -
- -
-
-

pyams_content.component.paragraph.html module

-
-
-class pyams_content.component.paragraph.html.HTMLParagraph
-

Bases: pyams_content.component.paragraph.BaseParagraph

-

HTML paragraph

-
-
-body
-

Computed attributes based on schema fields

-

Field properties provide default values, data validation and error messages -based on data found in field meta-data.

-

Note that FieldProperties cannot be used with slots. They can only -be used for attributes stored in instance dictionaries.

-
- -
-
-icon_class = 'fa-html5'
-
- -
-
-icon_hint = 'HTML paragraph'
-
- -
- -
-
-class pyams_content.component.paragraph.html.HTMLParagraphContentChecker(context)
-

Bases: pyams_content.component.paragraph.BaseParagraphContentChecker

-

HTML paragraph content checker

-
-
-inner_check(request)
-
- -
- -
-
-class pyams_content.component.paragraph.html.HTMLParagraphFactory
-

Bases: object

-

HTML paragraph factory

-
-
-content_type
-

alias of HTMLParagraph

-
- -
-
-name = 'HTML paragraph'
-
- -
- -
-
-pyams_content.component.paragraph.html.check_associations(context, body, lang, notify=True)
-

Check for link associations from HTML content

-
- -
-
-pyams_content.component.paragraph.html.handle_added_html_paragraph(event)
-

Check for new associations from added paragraph

-
- -
-
-pyams_content.component.paragraph.html.handle_modified_html_paragraph(event)
-

Check for new associations from modified paragraph

-
- -
-
-

pyams_content.component.paragraph.video module

-
-
-class pyams_content.component.paragraph.video.VideoParagraph
-

Bases: pyams_content.component.paragraph.BaseParagraph

-

Video paragraph class

-
-
-author
-

Computed attributes based on schema fields

-

Field properties provide default values, data validation and error messages -based on data found in field meta-data.

-

Note that FieldProperties cannot be used with slots. They can only -be used for attributes stored in instance dictionaries.

-
- -
-
-body
-

Computed attributes based on schema fields

-

Field properties provide default values, data validation and error messages -based on data found in field meta-data.

-

Note that FieldProperties cannot be used with slots. They can only -be used for attributes stored in instance dictionaries.

-
- -
-
-data
-

Property class used to handle files

-
- -
-
-description
-

Computed attributes based on schema fields

-

Field properties provide default values, data validation and error messages -based on data found in field meta-data.

-

Note that FieldProperties cannot be used with slots. They can only -be used for attributes stored in instance dictionaries.

-
- -
-
-icon_class = 'fa-film'
-
- -
-
-icon_hint = 'Video'
-
- -
- -
-
-class pyams_content.component.paragraph.video.VideoParagraphContentChecker(context)
-

Bases: pyams_content.component.paragraph.BaseParagraphContentChecker

-

Video paragraph content checker

-
-
-inner_check(request)
-
- -
- -
-
-class pyams_content.component.paragraph.video.VideoParagraphFactory
-

Bases: object

-

Video paragraph factory

-
-
-content_type
-

alias of VideoParagraph

-
- -
-
-name = 'Video'
-
- -
- -
-
-pyams_content.component.paragraph.video.handle_added_video_paragraph(event)
-

Check for new associations from added paragraph

-
- -
-
-pyams_content.component.paragraph.video.handle_modified_video_paragraph(event)
-

Check for new associations from modified paragraph

-
- -
-
-

Module contents

-
-
-class pyams_content.component.paragraph.BaseParagraph
-

Bases: persistent.Persistent, zope.container.contained.Contained

-

Base paragraph persistent class

-
-
-icon_class = ''
-
- -
-
-icon_hint = ''
-
- -
-
-title
-

Computed attributes based on schema fields

-

Field properties provide default values, data validation and error messages -based on data found in field meta-data.

-

Note that FieldProperties cannot be used with slots. They can only -be used for attributes stored in instance dictionaries.

-
- -
-
-visible
-

Computed attributes based on schema fields

-

Field properties provide default values, data validation and error messages -based on data found in field meta-data.

-

Note that FieldProperties cannot be used with slots. They can only -be used for attributes stored in instance dictionaries.

-
- -
- -
-
-class pyams_content.component.paragraph.BaseParagraphContentChecker(context)
-

Bases: pyams_content.features.checker.BaseContentChecker

-

Base paragraph content checker mixin

-
-
-label
-
- -
- -
-
-class pyams_content.component.paragraph.BaseParagraphPermissionChecker(context)
-

Bases: pyams_utils.adapter.ContextAdapter

-

Paragraph permission checker

-
-
-edit_permission
-
- -
- -
-
-class pyams_content.component.paragraph.ParagraphFactoriesVocabulary(context=None)
-

Bases: zope.schema.vocabulary.SimpleVocabulary

-

Paragraph factories vocabulary

-
- -
-
-pyams_content.component.paragraph.handle_added_paragraph(event)
-

Handle added paragraph

-
- -
-
-pyams_content.component.paragraph.handle_modified_paragraph(event)
-

Handle modified paragraph

-
- -
-
-pyams_content.component.paragraph.handle_new_paragraphs_container(event)
-

Handle new paragraphs container

-
- -
-
-pyams_content.component.paragraph.handle_removed_paragraph(event)
-

Handle removed paragraph

-
- -
-
- - -