pyams_content.component.gallery.zmi package¶
+Submodules¶
+pyams_content.component.gallery.zmi.file module¶
+-
+
-
+class
pyams_content.component.gallery.zmi.file.
GalleryFileInfoPropertiesAJAXEditForm
(context, request)¶
+ Bases:
+pyams_form.form.AJAXEditForm
,pyams_content.component.gallery.zmi.file.GalleryFilePropertiesEditForm
Gallery file properties edit form, JSON renderer
+-
+
-
+
get_ajax_output
(changes)¶
+
-
+
-
+
-
+class
pyams_content.component.gallery.zmi.file.
GalleryFilePropertiesAction
(context, request, view, manager)¶
+ Bases:
+pyams_file.zmi.file.FilePropertiesAction
Media properties action
+-
+
-
+
url
= 'gallery-file-properties.html'¶
+
-
+
-
+
-
+class
pyams_content.component.gallery.zmi.file.
GalleryFilePropertiesEditForm
(context, request)¶
+ Bases:
+pyams_zmi.form.AdminDialogEditForm
Gallery file properties edit form
+-
+
-
+
ajax_handler
= 'gallery-file-properties.json'¶
+
-
+
-
+
dialog_class
= 'modal-large'¶
+
-
+
-
+
fields
= <z3c.form.field.Fields object>¶
+
-
+
-
+
icon_css_class
= 'fa fa-fw fa-picture-o'¶
+
-
+
-
+
legend
= 'Update image properties'¶
+
-
+
-
+
title
¶
+
-
+
-
+
updateWidgets
(prefix=None)¶
+
-
+
-
+
-
+class
pyams_content.component.gallery.zmi.file.
GalleryFileRemoverAction
(context, request, view, manager)¶
+ Bases:
+pyams_content.shared.common.zmi.WfSharedContentPermissionMixin
,pyams_skin.viewlet.toolbar.JsToolbarActionItem
Gallery file remover action
+-
+
-
+
hint_gravity
= 'nw'¶
+
-
+
-
+
label
= 'Remove image...'¶
+
-
+
-
+
label_css_class
= 'fa fa-fw fa-trash'¶
+
-
+
-
+
url
= 'PyAMS_content.galleries.removeFile'¶
+
-
+
-
+
-
+class
pyams_content.component.gallery.zmi.file.
GalleryFileShowHideAction
(context, request, view, manager)¶
+ Bases:
+pyams_content.shared.common.zmi.WfSharedContentPermissionMixin
,pyams_skin.viewlet.toolbar.JsToolbarActionItem
Gallery file show/hide action
+-
+
-
+
edit_permission
= 'system.forbidden'¶
+
-
+
-
+
get_url
()¶
+
-
+
-
+
hint_gravity
= 'nw'¶
+
-
+
-
+
label
¶
+
-
+
-
+
label_css_class
¶
+
-
+
-
+
url
= 'PyAMS_content.galleries.switchImageVisibility'¶
+
-
+
-
+
-
+class
pyams_content.component.gallery.zmi.file.
GalleryImageAJAXAddForm
(context, request)¶
+ Bases:
+pyams_form.form.AJAXAddForm
,pyams_content.component.gallery.zmi.file.GalleryImageAddForm
Gallery image add form, JSON renderer
+-
+
-
+
get_ajax_output
(changes)¶
+
-
+
-
+
-
+class
pyams_content.component.gallery.zmi.file.
GalleryImageAddForm
(context, request)¶
+ Bases:
+pyams_zmi.form.AdminDialogAddForm
Gallery image add form
+-
+
-
+
ajax_handler
= 'add-image.json'¶
+
-
+
-
+
create
(data)¶
+
-
+
-
+
fields
= <z3c.form.field.Fields object>¶
+
-
+
-
+
icon_css_class
= 'fa -fa-fw fa-picture-o'¶
+
-
+
-
+
legend
= 'Add image(s)'¶
+
-
+
-
+
updateWidgets
(prefix=None)¶
+
-
+
-
+
-
+class
pyams_content.component.gallery.zmi.file.
GalleryImageAddMenu
(context, request, view, manager)¶
+ Bases:
+pyams_content.shared.common.zmi.WfSharedContentPermissionMixin
,pyams_skin.viewlet.toolbar.ToolbarAction
Gallery image add menu
+-
+
-
+
label
= 'Add image(s)'¶
+
-
+
-
+
modal_target
= True¶
+
-
+
-
+
stop_propagation
= True¶
+
-
+
-
+
url
= 'add-image.html'¶
+
-
+
-
+
-
+
pyams_content.component.gallery.zmi.file.
delete_gallery_element
(request)¶
+ Delete gallery element
+
pyams_content.component.gallery.zmi.interfaces module¶
+pyams_content.component.gallery.zmi.paragraph module¶
+-
+
-
+class
pyams_content.component.gallery.zmi.paragraph.
GalleryAJAXAddForm
(context, request)¶
+ Bases:
+pyams_content.component.paragraph.zmi.BaseParagraphAJAXAddForm
,pyams_content.component.gallery.zmi.paragraph.GalleryAddForm
Gallery paragraph add form, JSON renderer
+
-
+
-
+class
pyams_content.component.gallery.zmi.paragraph.
GalleryAddForm
(context, request)¶
+ Bases:
+pyams_zmi.form.AdminDialogAddForm
Gallery add form
+-
+
-
+
add
(object)¶
+
-
+
-
+
ajax_handler
= 'add-gallery.json'¶
+
-
+
-
+
create
(data)¶
+
-
+
-
+
edit_permission
= 'pyams.ManageContent'¶
+
-
+
-
+
fields
= <z3c.form.field.Fields object>¶
+
-
+
-
+
icon_css_class
= 'fa fa-fw fa-picture-o'¶
+
-
+
-
+
legend
= 'Add new gallery'¶
+
-
+
-
+
updateWidgets
(prefix=None)¶
+
-
+
-
+
-
+class
pyams_content.component.gallery.zmi.paragraph.
GalleryAddMenu
(context, request, view, manager)¶
+ Bases:
+pyams_content.component.paragraph.zmi.BaseParagraphAddMenu
Gallery add menu
+-
+
-
+
label
= 'Add images gallery...'¶
+
-
+
-
+
label_css_class
= 'fa fa-fw fa-picture-o'¶
+
-
+
-
+
paragraph_type
= 'Gallery'¶
+
-
+
-
+
url
= 'add-gallery.html'¶
+
-
+
-
+
-
+class
pyams_content.component.gallery.zmi.paragraph.
GalleryContentsView
(context, request, view=None)¶
+ Bases:
+pyams_content.shared.common.zmi.WfSharedContentPermissionMixin
,pyams_zmi.form.InnerAdminDisplayForm
Gallery contents edit form
+-
+
-
+
fields
= <z3c.form.field.Fields object>¶
+
-
+
-
+
get_title
(image)¶
+
-
+
-
+
weight
= 10¶
+
-
+
-
+
-
+class
pyams_content.component.gallery.zmi.paragraph.
GalleryImageAddMenu
(context, request, view, manager)¶
+ Bases:
+pyams_content.shared.common.zmi.WfSharedContentPermissionMixin
,pyams_skin.viewlet.toolbar.ToolbarAction
Gallery image add menu
+-
+
-
+
label
= 'Add image(s)'¶
+
-
+
-
+
modal_target
= True¶
+
-
+
-
+
stop_propagation
= True¶
+
-
+
-
+
url
= 'add-image.html'¶
+
-
+
-
+
-
+class
pyams_content.component.gallery.zmi.paragraph.
GalleryInnerEditForm
(context, request)¶
+ Bases:
+pyams_content.component.gallery.zmi.paragraph.GalleryPropertiesEditForm
Gallery properties inner edit form
+-
+
-
+
-
+
legend
= None¶
+
-
+
-
+
-
+class
pyams_content.component.gallery.zmi.paragraph.
GalleryParagraphSummary
(context, request)¶
+ Bases:
+pyams_viewlet.viewlet.BaseContentProvider
Gallery summary
+-
+
-
+
language
= None¶
+
-
+
-
+
render
()¶
+
-
+
-
+
update
()¶
+
-
+
-
+
-
+class
pyams_content.component.gallery.zmi.paragraph.
GalleryPropertiesAJAXEditForm
(context, request)¶
+ Bases:
+pyams_content.component.paragraph.zmi.BaseParagraphAJAXEditForm
,pyams_content.component.gallery.zmi.paragraph.GalleryPropertiesEditForm
Gallery paragraph properties edit form, JSON renderer
+-
+
-
+
get_ajax_output
(changes)¶
+
-
+
-
+
-
+class
pyams_content.component.gallery.zmi.paragraph.
GalleryPropertiesEditForm
(context, request)¶
+ Bases:
+pyams_content.component.paragraph.zmi.BaseParagraphPropertiesEditForm
Gallery properties edit form
+-
+
-
+
ajax_handler
= 'properties.json'¶
+
-
+
-
+
edit_permission
= 'pyams.ManageContent'¶
+
-
+
-
+
fields
= <z3c.form.field.Fields object>¶
+
-
+
-
+
icon_css_class
= 'fa fa-fw fa-picture-o'¶
+
-
+
-
+
legend
= 'Edit gallery properties'¶
+
-
+
-
+
updateWidgets
(prefix=None)¶
+
-
+
Module contents¶
+-
+
-
+class
pyams_content.component.gallery.zmi.
BaseGalleryRenderer
(context, request)¶
+ Bases:
+pyams_utils.adapter.ContextRequestAdapter
Base gallery renderer
+-
+
-
+
render
= <BoundViewTemplate of None>¶
+
-
+
-
+
update
()¶
+
-
+
-
+
-
+class
pyams_content.component.gallery.zmi.
DefaultGalleryRenderer
(context, request)¶
+ Bases:
+pyams_content.component.gallery.zmi.BaseGalleryRenderer
Default gallery renderer
+-
+
-
+
label
= 'Default gallery renderer'¶
+
-
+
-
+
weight
= 1¶
+
-
+
-
+
-
+class
pyams_content.component.gallery.zmi.
GalleryContentForm
(context, request)¶
+ Bases:
+pyams_zmi.form.AdminDialogDisplayForm
Gallery contents form
+-
+
-
+
dialog_class
= 'modal-max'¶
+
-
+
-
+
fields
= <z3c.form.field.Fields object>¶
+
-
+
-
+
legend
= 'Update gallery contents'¶
+
-
+
-
+
show_widget_title
= True¶
+
-
+
-
+
-
+class
pyams_content.component.gallery.zmi.
GalleryImagesView
(context, request)¶
+ Bases:
+pyams_content.shared.common.zmi.WfSharedContentPermissionMixin
Gallery images view
+-
+
-
+
get_title
(image)¶
+
-
+
-
+
-
+class
pyams_content.component.gallery.zmi.
GalleryImagesViewlet
(context, request, view, manager)¶
+ Bases:
+pyams_viewlet.viewlet.Viewlet
Gallery images viewlet
+-
+
-
+
get_title
(image)¶
+
-
+
-
+
-
+class
pyams_content.component.gallery.zmi.
GalleryPropertiesAJAXEditForm
(context, request)¶
+ Bases:
+pyams_form.form.AJAXEditForm
,pyams_content.component.gallery.zmi.GalleryPropertiesEditForm
Gallery properties edit form, JSON renderer
+-
+
-
+
get_ajax_output
(changes)¶
+
-
+
-
+
-
+class
pyams_content.component.gallery.zmi.
GalleryPropertiesEditForm
(context, request)¶
+ Bases:
+pyams_zmi.form.AdminDialogEditForm
Gallery properties edit form
+-
+
-
+
ajax_handler
= 'properties.json'¶
+
-
+
-
+
edit_permission
= 'pyams.ManageContent'¶
+
-
+
-
+
fields
= <z3c.form.field.Fields object>¶
+
-
+
-
+
icon_css_class
= 'fa fa-fw fa-picture-o'¶
+
-
+
-
+
legend
= 'Update gallery properties'¶
+
-
+
-
+
updateWidgets
(prefix=None)¶
+
-
+
-
+
-
+
pyams_content.component.gallery.zmi.
get_images_archive
(request)¶
+ Get all gallery images as ZIP file
+
-
+
-
+
pyams_content.component.gallery.zmi.
set_image_visibility
(request)¶
+ Set gallery image visibility
+
-
+
-
+
pyams_content.component.gallery.zmi.
set_images_order
(request)¶
+ Set gallery images order
+