pyams_content.shared.site.zmi package¶
+Subpackages¶
+ +Submodules¶
+pyams_content.shared.site.zmi.container module¶
+-
+
-
+class
pyams_content.shared.site.zmi.container.
SharedContentTableElementEditor
(context, request, view)¶
+ Bases:
+pyams_skin.table.DefaultElementEditorAdapter
Shared content tree table element editor
+-
+
-
+
modal_target
= False¶
+
-
+
-
+
url
¶
+
-
+
-
+
view_name
= 'admin'¶
+
-
+
-
+
-
+class
pyams_content.shared.site.zmi.container.
SharedContentTableElementName
(context, request, view)¶
+ Bases:
+pyams_utils.adapter.ContextRequestViewAdapter
Shared content tree table element name
+-
+
-
+
name
¶
+
-
+
-
+
-
+class
pyams_content.shared.site.zmi.container.
SiteContainerBreadcrumbAdapter
(context, request)¶
+ Bases:
+pyams_skin.viewlet.breadcrumb.BreadcrumbItem
Site container breadcrumb adapter
+-
+
-
+
label
¶
+
-
+
-
+
-
+class
pyams_content.shared.site.zmi.container.
SiteContainerTableElementEditor
(context, request, view)¶
+ Bases:
+pyams_skin.table.DefaultElementEditorAdapter
Site container tree table element editor
+-
+
-
+
modal_target
= False¶
+
-
+
-
+
view_name
= 'admin#site-tree.html'¶
+
-
+
-
+
-
+class
pyams_content.shared.site.zmi.container.
SiteContainerTableElementName
(context, request, view)¶
+ Bases:
+pyams_utils.adapter.ContextRequestViewAdapter
Site container tree table element name
+-
+
-
+
name
¶
+
-
+
-
+
-
+class
pyams_content.shared.site.zmi.container.
SiteContainerTableItemWorkflowPublicationMenu
(context, request, view, manager)¶
+ Bases:
+pyams_skin.viewlet.toolbar.ToolbarMenuItem
Site container tree item workflow publication menu
+-
+
-
+
label
= 'Publication dates...'¶
+
-
+
-
+
label_css_class
= 'fa fa-fw fa-eye'¶
+
-
+
-
+
modal_target
= True¶
+
-
+
-
+
stop_propagation
= True¶
+
-
+
-
+
url
= 'workflow-publication.html'¶
+
-
+
-
+
-
+class
pyams_content.shared.site.zmi.container.
SiteContainerTreeMenu
(context, request, view, manager=None)¶
+ Bases:
+pyams_skin.viewlet.menu.MenuItem
Site container tree menu
+-
+
-
+
icon_class
= 'fa-sitemap'¶
+
-
+
-
+
label
= 'Site tree'¶
+
-
+
-
+
url
= '#site-tree.html'¶
+
-
+
-
+
-
+class
pyams_content.shared.site.zmi.container.
SiteContainerTreeNameColumn
(context, request, table)¶
+ Bases:
+pyams_skin.table.NameColumn
Site container tree name column
+-
+
-
+
renderCell
(item, name=None)¶
+
-
+
-
+
renderHeadCell
()¶
+
-
+
-
+
-
+class
pyams_content.shared.site.zmi.container.
SiteContainerTreeOwnerColumn
(context, request, table)¶
+ Bases:
+pyams_content.shared.common.zmi.dashboard.SharedToolDashboardOwnerColumn
Site container tree owner column
+-
+
-
+
cssClasses
= {'td': 'col-xs-hide', 'th': 'col-xs-hide'}¶
+
-
+
-
+
getValue
(obj)¶
+
-
+
-
+
weight
= 35¶
+
-
+
-
+
-
+class
pyams_content.shared.site.zmi.container.
SiteContainerTreeSequenceColumn
(context, request, table)¶
+ Bases:
+pyams_content.shared.common.zmi.dashboard.SharedToolDashboardSequenceColumn
Site container tree OID column
+-
+
-
+
getValue
(obj)¶
+
-
+
-
+
-
+class
pyams_content.shared.site.zmi.container.
SiteContainerTreeSorterColumn
(context, request, table)¶
+ Bases:
+pyams_skin.table.SorterColumn
Site container tree sorter column
+-
+
-
+
permission
= 'pyams.ManageSite'¶
+
-
+
-
+
renderCell
(item)¶
+
-
+
-
+
-
+class
pyams_content.shared.site.zmi.container.
SiteContainerTreeStatusColumn
(context, request, table)¶
+ Bases:
+pyams_content.shared.common.zmi.dashboard.SharedToolDashboardStatusColumn
Site container tree status column
+-
+
-
+
getValue
(obj)¶
+
-
+
-
+
-
+class
pyams_content.shared.site.zmi.container.
SiteContainerTreeStatusDateColumn
(context, request, table)¶
+ Bases:
+pyams_content.shared.common.zmi.dashboard.SharedToolDashboardStatusDateColumn
Site container tree status date column
+-
+
-
+
getValue
(obj)¶
+
-
+
-
+
-
+class
pyams_content.shared.site.zmi.container.
SiteContainerTreeStatusPrincipalColumn
(context, request, table)¶
+ Bases:
+pyams_content.shared.common.zmi.dashboard.SharedToolDashboardStatusPrincipalColumn
Site container tree status principal column
+-
+
-
+
getValue
(obj)¶
+
-
+
-
+
-
+class
pyams_content.shared.site.zmi.container.
SiteContainerTreeTable
(context, request, can_sort=False, rows_state=None)¶
+ Bases:
+pyams_skin.table.BaseTable
Site container tree table
+-
+
-
+
cssClasses
¶
+
-
+
-
+
data_attributes
¶
+
-
+
-
+
hide_body_toolbar
= True¶
+
-
+
-
+
id
= 'site_tree_table'¶
+
-
+
-
+
permission
= 'pyams.ManageSite'¶
+
-
+
-
+
sortOn
= None¶
+
-
+
-
+
title
= 'Site tree'¶
+
-
+
-
+
-
+class
pyams_content.shared.site.zmi.container.
SiteContainerTreeTrashColumn
(context, request, table)¶
+ Bases:
+pyams_skin.table.TrashColumn
Site container tree trash column
+-
+
-
+
has_permission
(item)¶
+
-
+
-
+
icon_hint
= 'Delete site item'¶
+
-
+
-
+
permission
= 'pyams.ManageSite'¶
+
-
+
-
+
-
+class
pyams_content.shared.site.zmi.container.
SiteContainerTreeValuesAdapter
(context, request, view)¶
+ Bases:
+pyams_utils.adapter.ContextRequestViewAdapter
Site container tree values adapter
+-
+
-
+
values
¶
+
-
+
-
+
-
+class
pyams_content.shared.site.zmi.container.
SiteContainerTreeVersionColumn
(context, request, table)¶
+ Bases:
+pyams_content.shared.common.zmi.dashboard.SharedToolDashboardVersionColumn
Site container tree version column
+-
+
-
+
getValue
(obj)¶
+
-
+
-
+
-
+class
pyams_content.shared.site.zmi.container.
SiteContainerTreeView
(context, request)¶
+ Bases:
+pyams_zmi.view.AdminView
,pyams_skin.container.ContainerView
Site Container tree view
+-
+
-
+
table_class
¶
+ alias of
+SiteContainerTreeTable
-
+
-
+
-
+class
pyams_content.shared.site.zmi.container.
SiteContainerTreeVisibleColumn
(context, request, table)¶
+ Bases:
+pyams_skin.table.JsActionColumn
Site container tree visible column
+-
+
-
+
cssClasses
= {'td': 'action', 'th': 'action'}¶
+
-
+
-
+
get_icon
(item)¶
+
-
+
-
+
icon_class
= 'fa fa-fw fa-eye'¶
+
-
+
-
+
icon_hint
= 'Visible element?'¶
+
-
+
-
+
permission
= 'pyams.ManageContent'¶
+
-
+
-
+
renderCell
(item)¶
+
-
+
-
+
url
= 'PyAMS_content.site.switchVisibility'¶
+
-
+
-
+
weight
= 5¶
+
-
+
-
+
-
+class
pyams_content.shared.site.zmi.container.
SiteContainerViewHeaderAdapter
(context, request, view)¶
+ Bases:
+pyams_skin.page.DefaultPageHeaderAdapter
Site container tree view header adapter
+-
+
-
+
icon_class
= 'fa fa-fw fa-sitemap'¶
+
-
+
-
+
-
+class
pyams_content.shared.site.zmi.container.
SiteContainerWorkflowPublicationAJAXEditForm
(context, request)¶
+ Bases:
+pyams_form.form.AJAXEditForm
,pyams_content.shared.site.zmi.container.SiteContainerWorkflowPublicationEditForm
Site container workflow publication edit form, JSON renderer
+-
+
-
+
get_ajax_output
(changes)¶
+
-
+
-
+
-
+class
pyams_content.shared.site.zmi.container.
SiteContainerWorkflowPublicationEditForm
(context, request)¶
+ Bases:
+pyams_zmi.form.AdminDialogEditForm
Site container workflow publication edit form
+-
+
-
+
ajax_handler
= 'workflow-publication.json'¶
+
-
+
-
+
edit_permission
= 'pyams.ManageSite'¶
+
-
+
-
+
fields
= <z3c.form.field.Fields object>¶
+
-
+
-
+
legend
= 'Update publication dates'¶
+
-
+
-
+
-
+class
pyams_content.shared.site.zmi.container.
SiteContainerWorkflowPublicationMenu
(context, request, view, manager=None)¶
+ Bases:
+pyams_skin.viewlet.menu.MenuItem
Site container workflow publication menu
+-
+
-
+
icon_class
= 'fa-eye'¶
+
-
+
-
+
label
= 'Publication dates...'¶
+
-
+
-
+
modal_target
= True¶
+
-
+
-
+
url
= 'workflow-publication.html'¶
+
-
+
-
+
-
+class
pyams_content.shared.site.zmi.container.
SiteManagerUserAddingsMenuLabelAdapter
(context, request)¶
+ Bases:
+pyams_utils.adapter.ContextRequestAdapter
Site container user adding menu label adapter
+-
+
-
+
label
¶
+
-
+
-
+
-
+
pyams_content.shared.site.zmi.container.
delete_site_item
(request)¶
+ Delete item from site container
+
-
+
-
+
pyams_content.shared.site.zmi.container.
get_tree
(request)¶
+ Get whole tree
+
-
+
-
+
pyams_content.shared.site.zmi.container.
get_tree_nodes
(request)¶
+ Get tree nodes
+
-
+
-
+
pyams_content.shared.site.zmi.container.
set_content_visibility
(request)¶
+ Set content link visibility
+
-
+
-
+
pyams_content.shared.site.zmi.container.
set_site_order
(request)¶
+ Set site elements order
+
pyams_content.shared.site.zmi.folder module¶
+-
+
-
+class
pyams_content.shared.site.zmi.folder.
SiteFolderAJAXAddForm
(context, request)¶
+ Bases:
+pyams_form.form.AJAXAddForm
,pyams_content.shared.site.zmi.folder.SiteFolderAddForm
Site folder add form, JSON renderer
+-
+
-
+
get_ajax_output
(changes)¶
+
-
+
-
+
-
+class
pyams_content.shared.site.zmi.folder.
SiteFolderAddForm
(context, request)¶
+ Bases:
+pyams_zmi.form.AdminDialogAddForm
Site folder add form
+-
+
-
+
add
(content)¶
+
-
+
-
+
ajax_handler
= 'add-site-folder.json'¶
+
-
+
-
+
create
(data)¶
+
-
+
-
+
edit_permission
= 'pyams.ManageSite'¶
+
-
+
-
+
fields
= <z3c.form.field.Fields object>¶
+
-
+
-
+
icon_css_class
= 'fa fa-fw fa-folder-o'¶
+
-
+
-
+
legend
= 'Add site folder'¶
+
-
+
-
+
nextURL
()¶
+
-
+
-
+
title
¶
+
-
+
-
+
updateWidgets
(prefix=None)¶
+
-
+
-
+
update_content
(content, data)¶
+
-
+
-
+
-
+class
pyams_content.shared.site.zmi.folder.
SiteFolderAddMenu
(context, request, view, manager)¶
+ Bases:
+pyams_skin.viewlet.toolbar.ToolbarMenuItem
Site folder add menu
+-
+
-
+
label
= 'Add site folder...'¶
+
-
+
-
+
label_css_class
= 'fa fa-fw fa-folder-o'¶
+
-
+
-
+
modal_target
= True¶
+
-
+
-
+
url
= 'add-site-folder.html'¶
+
-
+
-
+
-
+
pyams_content.shared.site.zmi.folder.
handle_site_folder_add_form_data_extraction
(event)¶
+ Handle site folder add form data extraction
+
pyams_content.shared.site.zmi.link module¶
+-
+
-
+class
pyams_content.shared.site.zmi.link.
ContentLinkAJAXAddForm
(context, request)¶
+ Bases:
+pyams_form.form.AJAXAddForm
,pyams_content.shared.site.zmi.link.ContentLinkAddForm
Content link add form, JSOn renderer
+
-
+
-
+class
pyams_content.shared.site.zmi.link.
ContentLinkAddForm
(context, request)¶
+ Bases:
+pyams_zmi.form.AdminDialogAddForm
Content link add form
+-
+
-
+
add
(content)¶
+
-
+
-
+
ajax_handler
= 'add-content-link.json'¶
+
-
+
-
+
create
(data)¶
+
-
+
-
+
edit_permission
= 'pyams.CreateContent'¶
+
-
+
-
+
fields
= <z3c.form.field.Fields object>¶
+
-
+
-
+
legend
= 'Rent existing content'¶
+
-
+
-
+
nextURL
()¶
+
-
+
-
+
updateWidgets
(prefix=None)¶
+
-
+
-
+
update_content
(content, data)¶
+
-
+
-
+
-
+class
pyams_content.shared.site.zmi.link.
ContentLinkAddMenu
(context, request, view, manager)¶
+ Bases:
+pyams_skin.viewlet.toolbar.ToolbarMenuItem
Content link add menu
+-
+
-
+
label
= 'Rent content...'¶
+
-
+
-
+
label_css_class
= 'fa fa-fw fa-external-link-square fa-rotate-90'¶
+
-
+
-
+
modal_target
= True¶
+
-
+
-
+
url
= 'add-content-link.html'¶
+
-
+
-
+
-
+class
pyams_content.shared.site.zmi.link.
ContentLinkPropertiesAJAXEditForm
(context, request)¶
+ Bases:
+pyams_form.form.AJAXEditForm
,pyams_content.shared.site.zmi.link.ContentLinkPropertiesEditForm
Content link properties edit form, JSON renderer
+-
+
-
+
get_ajax_output
(changes)¶
+
-
+
-
+
-
+class
pyams_content.shared.site.zmi.link.
ContentLinkPropertiesEditForm
(context, request)¶
+ Bases:
+pyams_zmi.form.AdminDialogEditForm
Content link properties edit form
+-
+
-
+
ajax_handler
= 'properties.json'¶
+
-
+
-
+
edit_permission
= 'pyams.ManageContent'¶
+
-
+
-
+
fields
= <z3c.form.field.Fields object>¶
+
-
+
-
+
legend
= 'Edit content link properties'¶
+
-
+
-
+
-
+class
pyams_content.shared.site.zmi.link.
ContentLinkTableElementName
(context, request, view)¶
+ Bases:
+pyams_utils.adapter.ContextRequestViewAdapter
Content link table element name
+-
+
-
+
name
¶
+
-
+
pyams_content.shared.site.zmi.manager module¶
+-
+
-
+class
pyams_content.shared.site.zmi.manager.
SiteManagerAJAXAddForm
(context, request)¶
+ Bases:
+pyams_form.form.AJAXAddForm
,pyams_content.shared.site.zmi.manager.SiteManagerAddForm
Site manager add form, JSOn renderer
+
-
+
-
+class
pyams_content.shared.site.zmi.manager.
SiteManagerAddForm
(context, request)¶
+ Bases:
+pyams_zmi.form.AdminDialogAddForm
Site manager add form
+-
+
-
+
add
(object)¶
+
-
+
-
+
ajax_handler
= 'add-site-manager.json'¶
+
-
+
-
+
create
(data)¶
+
-
+
-
+
edit_permission
= None¶
+
-
+
-
+
fields
= <z3c.form.field.Fields object>¶
+
-
+
-
+
icon_css_class
= 'fa fa-fw fa-sitemap'¶
+
-
+
-
+
legend
= 'Add site manager'¶
+
-
+
-
+
nextURL
()¶
+
-
+
-
+
title
= 'Site manager'¶
+
-
+
-
+
-
+class
pyams_content.shared.site.zmi.manager.
SiteManagerAddMenu
(context, request, view, manager)¶
+ Bases:
+pyams_skin.viewlet.toolbar.ToolbarMenuItem
Site manager add menu
+-
+
-
+
label
= 'Add site manager'¶
+
-
+
-
+
label_css_class
= 'fa fa-fw fa-sitemap'¶
+
-
+
-
+
modal_target
= True¶
+
-
+
-
+
url
= 'add-site-manager.html'¶
+
-
+
-
+
-
+class
pyams_content.shared.site.zmi.manager.
SiteManagerBreadcrumbAdapter
(context, request)¶
+ Bases:
+pyams_skin.viewlet.breadcrumb.BreadcrumbItem
Site manager breadcrumb adapter
+-
+
-
+
css_class
= 'strong'¶
+
-
+
-
+
label
¶
+
-
+
-
+
-
+class
pyams_content.shared.site.zmi.manager.
SiteManagerTableElementEditor
(context, request, view)¶
+ Bases:
+pyams_skin.table.DefaultElementEditorAdapter
Site tree table element editor
+-
+
-
+
modal_target
= False¶
+
-
+
-
+
view_name
= 'admin#site-tree.html'¶
+
-
+
-
+
-
+class
pyams_content.shared.site.zmi.manager.
SiteManagerUserAddingsMenuLabelAdapter
(context, request)¶
+ Bases:
+pyams_utils.adapter.ContextRequestAdapter
Site manager user addings menu label adapter
+-
+
-
+
label
¶
+
-
+
-
+
-
+
pyams_content.shared.site.zmi.manager.
handle_new_site_manager_data_extraction
(event)¶
+ Handle new site manager data extraction
+
Module contents¶
+-
+
-
+class
pyams_content.shared.site.zmi.
TopicAJAXAddForm
(context, request)¶
+ Bases:
+pyams_content.shared.common.zmi.SharedContentAJAXAddForm
,pyams_content.shared.site.zmi.TopicAddForm
Topic add form, JSON renderer
+
-
+
-
+class
pyams_content.shared.site.zmi.
TopicAddForm
(context, request)¶
+ Bases:
+pyams_content.shared.common.zmi.SharedContentAddForm
Topic add form
+-
+
-
+
add
(content)¶
+
-
+
-
+
ajax_handler
= 'add-topic.json'¶
+
-
+
-
+
create
(data)¶
+
-
+
-
+
edit_permission
= 'pyams.CreateContent'¶
+
-
+
-
+
fields
= <z3c.form.field.Fields object>¶
+
-
+
-
+
legend
= 'Add topic'¶
+
-
+
-
+
nextURL
()¶
+
-
+
-
+
updateWidgets
(prefix=None)¶
+
-
+
-
+
update_content
(content, data)¶
+
-
+