- -
-

pyams_content.shared.form.zmi package

-
-

Submodules

-
-
-

pyams_content.shared.form.zmi.field module

-
-
-class pyams_content.shared.form.zmi.field.FormFieldAJAXAddForm(context, request)
-

Bases: pyams_form.form.AJAXAddForm, pyams_content.shared.form.zmi.field.FormFieldAddForm

-

Form field add form, JSON renderer

-
-
-nextURL()
-
- -
- -
-
-class pyams_content.shared.form.zmi.field.FormFieldAddAction(context, request, view, manager)
-

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

-

Form field add action

-
-
-label = 'Add form field'
-
- -
-
-label_css_class = 'fa fa-fw fa-plus'
-
- -
-
-modal_target = True
-
- -
-
-url = 'add-form-field.html'
-
- -
- -
-
-class pyams_content.shared.form.zmi.field.FormFieldAddForm(context, request)
-

Bases: pyams_zmi.form.AdminDialogAddForm

-

Form field add form

-
-
-add(object)
-
- -
-
-ajax_handler = 'add-form-field.json'
-
- -
-
-create(data)
-
- -
-
-edit_permission = 'pyams.ManageContent'
-
- -
-
-fields = <z3c.form.field.Fields object>
-
- -
-
-icon_css_class = 'fa fa-fw fa-pencil-square-o'
-
- -
-
-legend = 'Add form field'
-
- -
-
-updateWidgets(prefix=None)
-
- -
- -
-
-class pyams_content.shared.form.zmi.field.FormFieldPropertiesAJAXEditForm(context, request)
-

Bases: pyams_form.form.AJAXEditForm, pyams_content.shared.form.zmi.field.FormFieldPropertiesEditForm

-

Form field properties edit form, JSON renderer

-
-
-get_ajax_output(changes)
-
- -
- -
-
-class pyams_content.shared.form.zmi.field.FormFieldPropertiesEditForm(context, request)
-

Bases: pyams_zmi.form.AdminDialogEditForm

-

Form field properties edit form

-
-
-ajax_handler = 'properties.json'
-
- -
-
-edit_permission = 'pyams.ManageContent'
-
- -
-
-fields = <z3c.form.field.Fields object>
-
- -
-
-icon_class = 'fa fa-fw fa-pencil-square-o'
-
- -
-
-legend = 'Edit form field properties'
-
- -
-
-title
-
- -
-
-updateWidgets(prefix=None)
-
- -
- -
-
-class pyams_content.shared.form.zmi.field.FormFieldsContainerLabelColumn(context, request, table)
-

Bases: pyams_skin.table.I18nColumn, pyams_content.shared.common.zmi.WfModifiedContentColumnMixin, pyams_skin.table.I18nValueColumn

-

Form fields container label column

-
-
-attrName = 'label'
-
- -
-
-weight = 55
-
- -
- -
-
-class pyams_content.shared.form.zmi.field.FormFieldsContainerNameColumn(context, request, table)
-

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

-

Form fields container name column

-
-
-attrName = 'name'
-
- -
-
-weight = 50
-
- -
- -
-
-class pyams_content.shared.form.zmi.field.FormFieldsContainerShowHideColumn(context, request, table)
-

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

-

Form fields container visibility switcher column

-
-
-cssClasses = {'td': 'action switcher', 'th': 'action'}
-
- -
-
-get_icon(item)
-
- -
-
-icon_class = 'fa fa-fw fa-eye'
-
- -
-
-icon_hint = 'Switch field visibility'
-
- -
-
-renderCell(item)
-
- -
-
-url = 'PyAMS_content.fields.switchVisibility'
-
- -
-
-weight = 5
-
- -
- -
-
-class pyams_content.shared.form.zmi.field.FormFieldsContainerSorterColumn(context, request, table)
-

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

-

Form fields container sorter column

-
- -
-
-class pyams_content.shared.form.zmi.field.FormFieldsContainerTable(context, request)
-

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

-

Form fields table

-
-
-cssClasses
-
- -
-
-data_attributes
-
- -
-
-hide_header = True
-
- -
-
-id = 'form_fields_list'
-
- -
-
-render()
-
- -
-
-sortOn = None
-
- -
-
-values
-
- -
- -
-
-class pyams_content.shared.form.zmi.field.FormFieldsContainerTrashColumn(context, request, table)
-

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

-

Form fields container trash column

-
- -
-
-class pyams_content.shared.form.zmi.field.FormFieldsContainerTypeColumn(context, request, table)
-

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

-

Form fields container label column

-
-
-getValue(obj)
-
- -
-
-weight = 60
-
- -
- -
-
-class pyams_content.shared.form.zmi.field.FormFieldsContainerValues(context, request, view)
-

Bases: pyams_utils.adapter.ContextRequestViewAdapter

-

Form fields container values

-
-
-values
-
- -
- -
-
-class pyams_content.shared.form.zmi.field.FormFieldsContainerView(context, request)
-

Bases: pyams_zmi.view.ContainerAdminView

-

Form fields container view

-
-
-table_class
-

alias of FormFieldsContainerTable

-
- -
-
-title = 'Form fields list'
-
- -
- -
-
-class pyams_content.shared.form.zmi.field.FormFieldsMenu(context, request, view, manager=None)
-

Bases: pyams_skin.viewlet.menu.MenuItem

-

Form fields menu

-
-
-icon_class = 'fa-pencil-square-o'
-
- -
-
-label = 'Form fields...'
-
- -
-
-url = '#form-fields.html'
-
- -
- -
-
-pyams_content.shared.form.zmi.field.ShowHideColumnSecurityContextFactory(column)
-

Show/hide column security context factory

-
- -
-
-pyams_content.shared.form.zmi.field.handle_new_form_field_data_extraction(event)
-

Handle new form field form data extraction

-
- -
-
-pyams_content.shared.form.zmi.field.set_form_field_visibility(request)
-

Set form field visibility

-
- -
-
-pyams_content.shared.form.zmi.field.set_form_fields_order(request)
-

Update form fields order

-
- -
-
-

pyams_content.shared.form.zmi.preview module

-
-
-class pyams_content.shared.form.zmi.preview.FormFieldContainerPreview(context, request, view, manager)
-

Bases: pyams_viewlet.viewlet.Viewlet

-

Form field container preview

-
-
-display_form = None
-
- -
-
-render()
-
- -
-
-update()
-
- -
- -
-
-class pyams_content.shared.form.zmi.preview.FormFieldContainerPreviewDisplayForm(context, request, view=None)
-

Bases: pyams_zmi.form.InnerAdminAddForm

-

Form fields container preview display form

-
-
-buttons = <z3c.form.button.Buttons object>
-
- -
-
-fields
-
- -
-
-legend
-
- -
-
-updateWidgets(prefix=None)
-
- -
- -
-
-class pyams_content.shared.form.zmi.preview.FormFieldContainerPreviewHelp(context, request, view)
-

Bases: pyams_form.help.FormHelp

-

Form field container preview help adapter

-
-
-message
-
- -
-
-message_format = 'text'
-
- -
- -
-
-

pyams_content.shared.form.zmi.properties module

-
-
-class pyams_content.shared.form.zmi.properties.FormHandlerPropertiesEditForm(context, request, view=None)
-

Bases: pyams_zmi.form.InnerAdminEditForm

-

Form handler properties edit form extension

-
-
-fields
-
- -
-
-fieldset_class = 'bordered no-x-margin margin-y-10'
-
- -
-
-legend = 'Form handler settings'
-
- -
-
-weight = 2
-
- -
- -
-
-class pyams_content.shared.form.zmi.properties.FormPropertiesEditForm(context, request, view=None)
-

Bases: pyams_zmi.form.InnerAdminEditForm

-

Form properties edit form extension

-
-
-fields = <z3c.form.field.Fields object>
-
- -
-
-fieldset_class = 'bordered no-x-margin margin-y-10'
-
- -
-
-get_ajax_output(changes)
-
- -
-
-legend = 'Main form settings'
-
- -
-
-updateWidgets(prefix=None)
-
- -
-
-weight = 1
-
- -
- -
-
-

Module contents

-
-
-class pyams_content.shared.form.zmi.FormAJAXAddForm(context, request)
-

Bases: pyams_content.shared.common.zmi.SharedContentAJAXAddForm, pyams_content.shared.form.zmi.FormAddForm

-

Form add form, JSON renderer

-
- -
-
-class pyams_content.shared.form.zmi.FormAddAction(context, request, view, manager)
-

Bases: pyams_skin.viewlet.toolbar.ToolbarAction

-

Form adding action

-
-
-label = 'Add form'
-
- -
-
-label_css_class = 'fa fa-fw fa-plus'
-
- -
-
-modal_target = True
-
- -
-
-url = 'add-shared-content.html'
-
- -
- -
-
-class pyams_content.shared.form.zmi.FormAddForm(context, request)
-

Bases: pyams_content.shared.common.zmi.SharedContentAddForm

-

Form add form

-
-
-legend = 'Add form'
-
- -
- -
-
-class pyams_content.shared.form.zmi.FormContentMenuHeader(context, request)
-

Bases: pyams_utils.adapter.ContextRequestAdapter

-

Form content menu header adapter

-
-
-header = 'This form'
-
- -
- -
-
-class pyams_content.shared.form.zmi.FormTitleAdapter(context, request, view)
-

Bases: pyams_utils.adapter.ContextRequestViewAdapter

-

Form title adapter

-
-
-title
-
- -
- -
-
- - -