+ +
+

pyams_content.component.paragraph.zmi package

+
+

Submodules

+
+
+

pyams_content.component.paragraph.zmi.container module

+
+
+class pyams_content.component.paragraph.zmi.container.BaseParagraphTableElementEditor
+

Bases: pyams_utils.adapter.NullAdapter

+

Base paragraph table element editor

+
+ +
+
+class pyams_content.component.paragraph.zmi.container.ParagraphContainerBaseTable(context, request)
+

Bases: pyams_form.security.ProtectedFormObjectMixin, pyams_skin.table.BaseTable

+

Paragraphs container table

+
+
+cssClasses
+
+ +
+
+data_attributes
+
+ +
+
+hide_header = True
+
+ +
+
+id = 'paragraphs_list'
+
+ +
+
+sortOn = None
+
+ +
+ +
+
+class pyams_content.component.paragraph.zmi.container.ParagraphContainerBaseTitleColumn(context, request, table)
+

Bases: pyams_skin.table.I18nColumn, pyams_content.shared.common.zmi.WfModifiedContentColumnMixin, z3c.table.column.GetAttrColumn

+

Paragraph container base title column

+
+
+getValue(obj)
+
+ +
+
+renderCell(item)
+
+ +
+
+weight = 50
+
+ +
+ +
+
+class pyams_content.component.paragraph.zmi.container.ParagraphContainerCounterBase(context, request, view, manager)
+

Bases: pyams_viewlet.viewlet.Viewlet

+

Paragraph container base counter viewlet

+
+
+count = None
+
+ +
+
+weight = 0
+
+ +
+ +
+
+class pyams_content.component.paragraph.zmi.container.ParagraphContainerDialogView(context, request)
+

Bases: pyams_zmi.form.AdminDialogDisplayForm

+

Paragraphs container dialog view

+
+
+dialog_class = 'modal-large no-widget-toolbar'
+
+ +
+
+fields = <z3c.form.field.Fields object>
+
+ +
+
+fieldset_class = 'height-300'
+
+ +
+
+title = 'Paragraphs list'
+
+ +
+ +
+
+class pyams_content.component.paragraph.zmi.container.ParagraphContainerPictogramColumn(context, request, table)
+

Bases: pyams_skin.table.ImageColumn

+

Paragraph container pictogram column

+
+
+get_icon_class(item)
+
+ +
+
+get_icon_hint(item)
+
+ +
+
+weight = 6
+
+ +
+ +
+
+class pyams_content.component.paragraph.zmi.container.ParagraphContainerShowHideColumn(context, request, table)
+

Bases: pyams_form.security.ProtectedFormObjectMixin, pyams_skin.table.JsActionColumn

+

Paragraphs container visibility switcher column

+
+
+cssClasses = {'td': 'action switcher', 'th': 'action'}
+
+ +
+
+get_icon(item)
+
+ +
+
+icon_class = 'fa fa-fw fa-eye'
+
+ +
+
+icon_hint = 'Switch paragraph visibility'
+
+ +
+
+renderCell(item)
+
+ +
+
+url = 'PyAMS_content.paragraphs.switchVisibility'
+
+ +
+
+weight = 5
+
+ +
+ +
+
+class pyams_content.component.paragraph.zmi.container.ParagraphContainerSorterColumn(context, request, table)
+

Bases: pyams_form.security.ProtectedFormObjectMixin, pyams_skin.table.SorterColumn

+

Paragraphs container sorter column

+
+ +
+
+class pyams_content.component.paragraph.zmi.container.ParagraphContainerTable(context, request)
+

Bases: pyams_content.component.paragraph.zmi.container.ParagraphContainerBaseTable

+

Paragraph container base table

+
+
+render()
+
+ +
+
+values
+
+ +
+ +
+
+class pyams_content.component.paragraph.zmi.container.ParagraphContainerTitleColumn(context, request, table)
+

Bases: pyams_content.component.paragraph.zmi.container.ParagraphContainerBaseTitleColumn

+

Paragraph container title column

+
+
+renderCell(item)
+
+ +
+
+renderHeadCell()
+
+ +
+ +
+
+class pyams_content.component.paragraph.zmi.container.ParagraphContainerTrashColumn(context, request, table)
+

Bases: pyams_form.security.ProtectedFormObjectMixin, pyams_skin.table.TrashColumn

+

Paragraphs container trash column

+
+ +
+
+class pyams_content.component.paragraph.zmi.container.ParagraphContainerValues(context, request, view)
+

Bases: pyams_utils.adapter.ContextRequestViewAdapter

+

Paragraphs container values

+
+
+values
+
+ +
+ +
+
+class pyams_content.component.paragraph.zmi.container.ParagraphContainerView(context, request)
+

Bases: pyams_zmi.view.ContainerAdminView

+

Paragraphs container view

+
+
+table_class
+

alias of ParagraphContainerTable

+
+ +
+
+title = 'Paragraphs list'
+
+ +
+ +
+
+class pyams_content.component.paragraph.zmi.container.ParagraphHeaderAdapter(context, request, view)
+

Bases: pyams_skin.page.DefaultPageHeaderAdapter

+

Paragraphs container header adapter

+
+
+back_url = '#properties.html'
+
+ +
+
+icon_class = 'fa fa-fw fa-paragraph'
+
+ +
+ +
+
+class pyams_content.component.paragraph.zmi.container.ParagraphTitleToolbarViewletManager(context, request, view)
+

Bases: pyams_viewlet.manager.TemplateBasedViewletManager, pyams_viewlet.manager.WeightOrderedViewletManager

+

Paragraph title toolbar viewlet manager

+
+ +
+
+class pyams_content.component.paragraph.zmi.container.ParagraphsAssociationsMenu(context, request, view, manager=None)
+

Bases: pyams_skin.viewlet.menu.MenuItem

+

Paragraphs associations container menu

+
+
+icon_class = 'fa-link'
+
+ +
+
+label = 'Associations...'
+
+ +
+
+url = '#paragraphs-associations.html'
+
+ +
+ +
+
+class pyams_content.component.paragraph.zmi.container.ParagraphsAssociationsView
+

Bases: pyams_zmi.view.AdminView

+

Paragraphs associations view

+
+
+associations
+
+ +
+
+title = 'Paragraphs associations'
+
+ +
+
+update()
+
+ +
+ +
+
+class pyams_content.component.paragraph.zmi.container.ParagraphsContainerMenu(context, request, view, manager=None)
+

Bases: pyams_skin.viewlet.menu.MenuItem

+

Paragraphs container menu

+
+
+icon_class = 'fa-paragraph'
+
+ +
+
+label = 'Paragraphs...'
+
+ +
+
+url = '#paragraphs.html'
+
+ +
+ +
+
+class pyams_content.component.paragraph.zmi.container.ParagraphsView(context, request, view)
+

Bases: pyams_pagelet.pagelet.Pagelet

+

Paragraphs view

+
+
+update()
+
+ +
+
+weight = 90
+
+ +
+ +
+
+pyams_content.component.paragraph.zmi.container.ShowHideColumnSecurityContextFactory(column)
+

Show/hide column security context factory

+
+ +
+
+pyams_content.component.paragraph.zmi.container.getParagraphTitleHints(item, request, table)
+

Get paragraphs column title hints

+
+ +
+
+pyams_content.component.paragraph.zmi.container.get_paragraph_editor(request)
+

Get paragraph editor

+
+ +
+
+pyams_content.component.paragraph.zmi.container.get_paragraphs_editors(request)
+

Get all paragraphs inner editors

+
+ +
+
+pyams_content.component.paragraph.zmi.container.set_paragraph_visibility(request)
+

Set paragraph visibility

+
+ +
+
+pyams_content.component.paragraph.zmi.container.set_paragraphs_order(request)
+

Update paragraphs order

+
+ +
+
+

pyams_content.component.paragraph.zmi.header module

+
+
+class pyams_content.component.paragraph.zmi.header.HeaderParagraphAJAXAddForm(context, request)
+

Bases: pyams_content.component.paragraph.zmi.BaseParagraphAJAXAddForm, pyams_content.component.paragraph.zmi.header.HeaderParagraphAddForm

+

Header paragraph add form, JSON renderer

+
+ +
+
+class pyams_content.component.paragraph.zmi.header.HeaderParagraphAddForm(context, request)
+

Bases: pyams_zmi.form.AdminDialogAddForm

+

Header paragraph add form

+
+
+add(object)
+
+ +
+
+ajax_handler = 'add-header-paragraph.json'
+
+ +
+
+create(data)
+
+ +
+
+edit_permission = 'pyams.ManageContent'
+
+ +
+
+fields = <z3c.form.field.Fields object>
+
+ +
+
+icon_css_class = 'fa fa-fw fa-header'
+
+ +
+
+legend = 'Add new header paragraph'
+
+ +
+
+updateWidgets(prefix=None)
+
+ +
+ +
+
+class pyams_content.component.paragraph.zmi.header.HeaderParagraphAddMenu(context, request, view, manager)
+

Bases: pyams_content.component.paragraph.zmi.BaseParagraphAddMenu

+

Header paragraph add menu

+
+
+label = 'Add header paragraph...'
+
+ +
+
+label_css_class = 'fa fa-fw fa-header'
+
+ +
+
+paragraph_type = 'Header'
+
+ +
+
+url = 'add-header-paragraph.html'
+
+ +
+ +
+
+class pyams_content.component.paragraph.zmi.header.HeaderParagraphInnerEditForm(context, request)
+

Bases: pyams_content.component.paragraph.zmi.header.HeaderParagraphPropertiesEditForm

+

Header paragraph inner edit form

+
+
+buttons
+
+ +
+
+input_css_class = 'col-md-10'
+
+ +
+
+label_css_class = 'control-label col-md-2'
+
+ +
+
+legend = None
+
+ +
+ +
+
+class pyams_content.component.paragraph.zmi.header.HeaderParagraphPropertiesAJAXEditForm(context, request)
+

Bases: pyams_content.component.paragraph.zmi.BaseParagraphAJAXEditForm, pyams_content.component.paragraph.zmi.header.HeaderParagraphPropertiesEditForm

+

Header paragraph properties edit form, JSON renderer

+
+
+get_ajax_output(changes)
+
+ +
+ +
+
+class pyams_content.component.paragraph.zmi.header.HeaderParagraphPropertiesEditForm(context, request)
+

Bases: pyams_content.component.paragraph.zmi.BaseParagraphPropertiesEditForm

+

Header paragraph properties edit form

+
+
+ajax_handler = 'properties.json'
+
+ +
+
+edit_permission = 'pyams.ManageContent'
+
+ +
+
+fields = <z3c.form.field.Fields object>
+
+ +
+
+icon_css_class = 'fa fa-fw fa-header'
+
+ +
+
+legend = 'Edit header paragraph properties'
+
+ +
+
+updateWidgets(prefix=None)
+
+ +
+ +
+
+class pyams_content.component.paragraph.zmi.header.HeaderParagraphSummary(context, request)
+

Bases: pyams_viewlet.viewlet.BaseContentProvider

+

Header paragraph renderer

+
+
+language = None
+
+ +
+
+update()
+
+ +
+ +
+
+

pyams_content.component.paragraph.zmi.html module

+
+
+class pyams_content.component.paragraph.zmi.html.HTMLParagraphAJAXAddForm(context, request)
+

Bases: pyams_content.component.paragraph.zmi.BaseParagraphAJAXAddForm, pyams_content.component.paragraph.zmi.html.HTMLParagraphAddForm

+

HTML paragraph add form, JSON renderer

+
+ +
+
+class pyams_content.component.paragraph.zmi.html.HTMLParagraphAddForm(context, request)
+

Bases: pyams_zmi.form.AdminDialogAddForm

+

HTML paragraph add form

+
+
+add(object)
+
+ +
+
+ajax_handler = 'add-html-paragraph.json'
+
+ +
+
+create(data)
+
+ +
+
+dialog_class = 'modal-max'
+
+ +
+
+edit_permission = 'pyams.ManageContent'
+
+ +
+
+fields = <z3c.form.field.Fields object>
+
+ +
+
+icon_css_class = 'fa fa-fw fa-html5'
+
+ +
+
+input_css_class = 'col-md-10'
+
+ +
+
+label_css_class = 'control-label col-md-2'
+
+ +
+
+legend = 'Add new HTML paragraph'
+
+ +
+
+updateWidgets(prefix=None)
+
+ +
+ +
+
+class pyams_content.component.paragraph.zmi.html.HTMLParagraphAddMenu(context, request, view, manager)
+

Bases: pyams_content.component.paragraph.zmi.BaseParagraphAddMenu

+

HTML paragraph add menu

+
+
+label = 'Add HTML paragraph...'
+
+ +
+
+label_css_class = 'fa fa-fw fa-html5'
+
+ +
+
+paragraph_type = 'HTML'
+
+ +
+
+url = 'add-html-paragraph.html'
+
+ +
+ +
+
+class pyams_content.component.paragraph.zmi.html.HTMLParagraphInnerAJAXEditForm(context, request)
+

Bases: pyams_content.component.paragraph.zmi.BaseParagraphAJAXEditForm, pyams_content.component.paragraph.zmi.html.HTMLParagraphInnerEditForm

+

HTML paragraph inner edit form, JSON renderer

+
+
+get_ajax_output(changes)
+
+ +
+ +
+
+class pyams_content.component.paragraph.zmi.html.HTMLParagraphInnerEditForm(context, request)
+

Bases: pyams_content.component.paragraph.zmi.html.HTMLParagraphPropertiesEditForm

+

HTML paragraph inner edit form

+
+
+ajax_handler = 'inner-properties.json'
+
+ +
+
+buttons
+
+ +
+
+legend = None
+
+ +
+ +
+
+class pyams_content.component.paragraph.zmi.html.HTMLParagraphPropertiesAJAXEditForm(context, request)
+

Bases: pyams_content.component.paragraph.zmi.BaseParagraphAJAXEditForm, pyams_content.component.paragraph.zmi.html.HTMLParagraphPropertiesEditForm

+

HTML paragraph properties edit form, JSON renderer

+
+
+get_ajax_output(changes)
+
+ +
+ +
+
+class pyams_content.component.paragraph.zmi.html.HTMLParagraphPropertiesEditForm(context, request)
+

Bases: pyams_content.component.paragraph.zmi.BaseParagraphPropertiesEditForm

+

HTML paragraph properties edit form

+
+
+ajax_handler = 'properties.json'
+
+ +
+
+dialog_class = 'modal-max'
+
+ +
+
+edit_permission = 'pyams.ManageContent'
+
+ +
+
+fields = <z3c.form.field.Fields object>
+
+ +
+
+icon_css_class = 'fa fa-fw fa-html5'
+
+ +
+
+input_css_class = 'col-md-10'
+
+ +
+
+label_css_class = 'control-label col-md-2'
+
+ +
+
+legend = 'Edit HTML paragraph properties'
+
+ +
+
+updateWidgets(prefix=None)
+
+ +
+ +
+
+class pyams_content.component.paragraph.zmi.html.HTMLParagraphSummary(context, request)
+

Bases: pyams_viewlet.viewlet.BaseContentProvider

+

HTML paragraph summary

+
+
+illustration = None
+
+ +
+
+illustration_renderer = None
+
+ +
+
+language = None
+
+ +
+
+render_illustration()
+
+ +
+
+update()
+
+ +
+ +
+
+

pyams_content.component.paragraph.zmi.interfaces module

+
+
+

pyams_content.component.paragraph.zmi.preview module

+
+
+class pyams_content.component.paragraph.zmi.preview.ParagraphsContainerPreview(context, request, view, manager)
+

Bases: pyams_viewlet.viewlet.Viewlet

+

Paragraphs container preview

+
+
+render_paragraph(paragraph, language=None)
+
+ +
+ +
+
+

pyams_content.component.paragraph.zmi.video module

+
+
+class pyams_content.component.paragraph.zmi.video.VideoParagraphAJAXAddForm(context, request)
+

Bases: pyams_content.component.paragraph.zmi.BaseParagraphAJAXAddForm, pyams_content.component.paragraph.zmi.video.VideoParagraphAddForm

+

Video paragraph add form, JSON renderer

+
+ +
+
+class pyams_content.component.paragraph.zmi.video.VideoParagraphAddForm(context, request)
+

Bases: pyams_zmi.form.AdminDialogAddForm

+

Video paragraph add form

+
+
+add(object)
+
+ +
+
+ajax_handler = 'add-video-paragraph.json'
+
+ +
+
+create(data)
+
+ +
+
+dialog_class = 'modal-large'
+
+ +
+
+edit_permission = 'pyams.ManageContent'
+
+ +
+
+fields = <z3c.form.field.Fields object>
+
+ +
+
+icon_css_class = 'fa fa-fw fa-film'
+
+ +
+
+legend = 'Add new video paragraph'
+
+ +
+
+updateWidgets(prefix=None)
+
+ +
+ +
+
+class pyams_content.component.paragraph.zmi.video.VideoParagraphAddMenu(context, request, view, manager)
+

Bases: pyams_content.component.paragraph.zmi.BaseParagraphAddMenu

+

Video paragraph add menu

+
+
+label = 'Add video paragraph...'
+
+ +
+
+label_css_class = 'fa fa-fw fa-film'
+
+ +
+
+paragraph_type = 'Video'
+
+ +
+
+url = 'add-video-paragraph.html'
+
+ +
+ +
+
+class pyams_content.component.paragraph.zmi.video.VideoParagraphPropertiesAJAXEditForm(context, request)
+

Bases: pyams_content.component.paragraph.zmi.BaseParagraphAJAXEditForm, pyams_content.component.paragraph.zmi.video.VideoParagraphPropertiesEditForm

+

Video paragraph properties edit form, JSON renderer

+
+
+get_ajax_output(changes)
+
+ +
+ +
+
+class pyams_content.component.paragraph.zmi.video.VideoParagraphPropertiesEditForm(context, request)
+

Bases: pyams_content.component.paragraph.zmi.BaseParagraphPropertiesEditForm

+

Video paragraph properties edit form

+
+
+ajax_handler = 'properties.json'
+
+ +
+
+dialog_class = 'modal-large'
+
+ +
+
+edit_permission = 'pyams.ManageContent'
+
+ +
+
+fields = <z3c.form.field.Fields object>
+
+ +
+
+icon_css_class = 'fa fa-fw fa-film'
+
+ +
+
+legend = 'Edit video properties'
+
+ +
+
+updateWidgets(prefix=None)
+
+ +
+ +
+
+class pyams_content.component.paragraph.zmi.video.VideoParagraphPropertiesInnerAJAXEditForm(context, request)
+

Bases: pyams_content.component.paragraph.zmi.BaseParagraphAJAXEditForm, pyams_content.component.paragraph.zmi.video.VideoParagraphPropertiesInnerEditForm

+

Video paragraph properties inner deit form, JSON renderer

+
+
+get_ajax_output(changes)
+
+ +
+ +
+
+class pyams_content.component.paragraph.zmi.video.VideoParagraphPropertiesInnerEditForm(context, request)
+

Bases: pyams_content.component.paragraph.zmi.video.VideoParagraphPropertiesEditForm

+

Video paragraph properties inner edit form

+
+
+ajax_handler = 'inner-properties.json'
+
+ +
+
+buttons
+
+ +
+
+legend = None
+
+ +
+ +
+
+class pyams_content.component.paragraph.zmi.video.VideoParagraphSummary(context, request)
+

Bases: pyams_viewlet.viewlet.BaseContentProvider

+

Video paragraph summary

+
+
+language = None
+
+ +
+
+update()
+
+ +
+ +
+
+

Module contents

+
+
+class pyams_content.component.paragraph.zmi.BaseParagraphAJAXAddForm(context, request)
+

Bases: pyams_form.form.AJAXAddForm

+

Base paragraph AJAX add form

+
+
+get_ajax_output(changes)
+
+ +
+ +
+
+class pyams_content.component.paragraph.zmi.BaseParagraphAJAXEditForm(context, request)
+

Bases: pyams_form.form.AJAXEditForm

+

Base paragraph AJAX edit form

+
+
+get_ajax_output(changes)
+
+ +
+ +
+
+class pyams_content.component.paragraph.zmi.BaseParagraphAddMenu(context, request, view, manager)
+

Bases: pyams_form.security.ProtectedFormObjectMixin, pyams_skin.viewlet.toolbar.ToolbarMenuItem

+

Base paragraph add menu

+
+
+modal_target = True
+
+ +
+
+paragraph_type = None
+
+ +
+ +
+
+class pyams_content.component.paragraph.zmi.BaseParagraphPropertiesEditForm(context, request)
+

Bases: pyams_zmi.form.AdminDialogEditForm

+

Base paragraph edit form

+
+
+title
+
+ +
+ +
+
+class pyams_content.component.paragraph.zmi.DefaultParagraphAJAXEditForm(context, request)
+

Bases: pyams_form.form.AJAXEditForm, pyams_content.component.paragraph.zmi.DefaultParagraphsEditForm

+

Default paragraphs edit form, JSON renderer

+
+ +
+
+class pyams_content.component.paragraph.zmi.DefaultParagraphsEditForm(context, request)
+

Bases: pyams_zmi.form.AdminDialogEditForm

+

Default paragraphs edit form

+
+
+ajax_handler = 'default-paragraphs.json'
+
+ +
+
+edit_permission = 'pyams.ManageTool'
+
+ +
+
+fields = <z3c.form.field.Fields object>
+
+ +
+
+legend = 'Paragraphs types'
+
+ +
+ +
+
+class pyams_content.component.paragraph.zmi.DefaultParagraphsEditFormHelp(context, request, view)
+

Bases: pyams_form.help.FormHelp

+

Default paragraphs edit form help

+
+
+message = 'You can define which types of paragraphs are allowed in this container.\n\nDefault paragraphs will be added automatically (in selected order) to any new created content.\n\nNOTICE: removing types from allowed types list will have no effect on already created contents!'
+
+ +
+
+message_format = 'rest'
+
+ +
+ +
+
+class pyams_content.component.paragraph.zmi.DefaultParagraphsSettingsMenu(context, request, view, manager=None)
+

Bases: pyams_skin.viewlet.menu.MenuItem

+

Default paragraphs settings menu

+
+
+icon_class = 'fa-paragraph'
+
+ +
+
+label = 'Paragraphs types...'
+
+ +
+
+modal_target = True
+
+ +
+
+url = 'default-paragraphs.html'
+
+ +
+ +
+
+ + +