pyams_thesaurus.zmi package¶
-Module contents¶
-Submodules¶
-pyams_thesaurus.zmi.extract module¶
--
-
-
-class
pyams_thesaurus.zmi.extract.
BaseTreeNodesView
(request)¶
- Bases:
-object
Base tree nodes views
--
-
-
-
get_nodes
(term, result)¶
-
-
-
-
-
-
-class
pyams_thesaurus.zmi.extract.
ThesaurusExtractAJAXAddForm
(context, request)¶
- Bases:
-pyams_form.form.AJAXAddForm
,pyams_thesaurus.zmi.extract.ThesaurusExtractAddForm
Thesaurus extract add form, AJAX view
-
-
-
-
-class
pyams_thesaurus.zmi.extract.
ThesaurusExtractAJAXEditForm
(context, request)¶
- Bases:
-pyams_form.form.AJAXEditForm
,pyams_thesaurus.zmi.extract.ThesaurusExtractEditForm
Thesaurus extract edit form, AJAX view
--
-
-
-
get_ajax_output
(changes)¶
-
-
-
-
-
-
-class
pyams_thesaurus.zmi.extract.
ThesaurusExtractAddAction
(context, request, view, manager)¶
- Bases:
-pyams_skin.viewlet.toolbar.ToolbarAction
Thesaurus extract add action
--
-
-
-
label
= 'Add extract'¶
-
-
-
-
-
modal_target
= True¶
-
-
-
-
-
url
= 'add-extract.html'¶
-
-
-
-
-
-
-class
pyams_thesaurus.zmi.extract.
ThesaurusExtractAddForm
(context, request)¶
- Bases:
-pyams_zmi.form.AdminDialogAddForm
Thesaurus extract add form
--
-
-
-
add
(object)¶
-
-
-
-
-
ajax_handler
= 'add-extract.json'¶
-
-
-
-
-
create
(data)¶
-
-
-
-
-
edit_permission
= None¶
-
-
-
-
-
fields
= <z3c.form.field.Fields object>¶
-
-
-
-
-
icon_css_class
= 'fa fa-fw fa-filter'¶
-
-
-
-
-
legend
= 'Add new extract'¶
-
-
-
-
-
nextURL
()¶
-
-
-
-
-
title
¶
-
-
-
-
-
updateWidgets
(prefix=None)¶
-
-
-
-
-
-
-class
pyams_thesaurus.zmi.extract.
ThesaurusExtractEditForm
(context, request)¶
- Bases:
-pyams_zmi.form.AdminDialogEditForm
Thesaurus extract edit form
--
-
-
-
ajax_handler
= 'properties.json'¶
-
-
-
-
-
edit_permission
= 'pyams.ManageThesaurusExtract'¶
-
-
-
-
-
fields
= <z3c.form.field.Fields object>¶
-
-
-
-
-
icon_css_class
= 'fa fa-fw fa-filter'¶
-
-
-
-
-
legend
= 'Edit extract properties'¶
-
-
-
-
-
title
¶
-
-
-
-
-
updateWidgets
(prefix=None)¶
-
-
-
-
-
-
-class
pyams_thesaurus.zmi.extract.
ThesaurusExtractTermsView
(context, request)¶
- Bases:
-pyams_zmi.form.AdminDialogDisplayForm
Thesaurus extract terms view
--
-
-
-
fields
= <z3c.form.field.Fields object>¶
-
-
-
-
-
icon_css_class
= 'fa fa-fw fa-filter'¶
-
-
-
-
-
legend
= 'Display extract terms'¶
-
-
-
-
-
title
¶
-
-
-
-
-
-
-class
pyams_thesaurus.zmi.extract.
ThesaurusExtractTermsViewlet
(context, request, view, manager)¶
- Bases:
-pyams_viewlet.viewlet.Viewlet
Thesaurus extract terms viewlet
--
-
-
-
tree
¶
-
-
-
-
-
-
-class
pyams_thesaurus.zmi.extract.
ThesaurusExtractsColorColumn
(context, request, table)¶
- Bases:
-z3c.table.column.GetAttrColumn
Thesaurus extracts color column
--
-
-
-
cssClasses
= {'td': 'action', 'th': 'action'}¶
-
-
-
-
-
getValue
(obj)¶
-
-
-
-
-
weight
= 20¶
-
-
-
-
-
-
-class
pyams_thesaurus.zmi.extract.
ThesaurusExtractsHideColumn
(context, request, table)¶
- Bases:
-pyams_skin.table.JsActionColumn
Thesaurus extracts show/hide column
--
-
-
-
icon_class
= 'fa fa-fw fa-eye switcher'¶
-
-
-
-
-
icon_hint
= 'Switch extract'¶
-
-
-
-
-
url
= 'PyAMS_thesaurus.tree.switchExtract'¶
-
-
-
-
-
weight
= 30¶
-
-
-
-
-
-
-class
pyams_thesaurus.zmi.extract.
ThesaurusExtractsTable
(context, request)¶
- Bases:
-pyams_skin.table.BaseTable
Thesaurus extracts table
--
-
-
-
cssClasses
= {'table': 'table table-bordered table-striped table-hover table-tight datatable extracts'}¶
-
-
-
-
-
data_attributes
¶
-
-
-
-
-
id
= 'thesaurus_extracts_table'¶
-
-
-
-
-
title
= 'Thesaurus extracts'¶
-
-
-
-
-
-
-class
pyams_thesaurus.zmi.extract.
ThesaurusExtractsTrashColumn
(context, request, table)¶
- Bases:
-pyams_skin.table.TrashColumn
Thesaurus extracts trash column
--
-
-
-
icon_hint
= 'Delete extract'¶
-
-
-
-
-
permission
= 'pyams.AdminThesaurus'¶
-
-
-
-
-
-
-class
pyams_thesaurus.zmi.extract.
ThesaurusExtractsValuesAdapter
(context, request, view)¶
- Bases:
-pyams_utils.adapter.ContextRequestViewAdapter
Thesaurus extracts values adapter
--
-
-
-
values
¶
-
-
-
-
-
-
-class
pyams_thesaurus.zmi.extract.
ThesaurusExtractsZoomColumn
(context, request, table)¶
- Bases:
-pyams_skin.table.ActionColumn
Thesaurus extracts zoom column
--
-
-
-
icon_class
= 'fa fa-fw fa-list'¶
-
-
-
-
-
icon_hint
= 'Extract contents'¶
-
-
-
-
-
modal_target
= True¶
-
-
-
-
-
url
= 'extract-terms.html'¶
-
-
-
-
-
weight
= 1¶
-
-
-
-
-
-
-class
pyams_thesaurus.zmi.extract.
ThesaurusTermNodes
(request)¶
- Bases:
-pyams_thesaurus.zmi.extract.BaseTreeNodesView
Get thesaurus nodes
-
-
-
-
-
pyams_thesaurus.zmi.extract.
delete_extract
(request)¶
- Delete extract from thesaurus
-
pyams_thesaurus.zmi.interfaces module¶
-pyams_thesaurus.zmi.manager module¶
--
-
-
-class
pyams_thesaurus.zmi.manager.
ControlPanelThesaurusHeaderAdapter
(context, request, view)¶
- Bases:
-pyams_skin.page.DefaultPageHeaderAdapter
Thesaurus view header adapter
--
-
-
-
icon_class
= 'fa fa-fw fa-language'¶
-
-
-
-
-
subtitle
= 'Thesaurus'¶
-
-
-
-
-
-
-class
pyams_thesaurus.zmi.manager.
ControlPanelThesaurusTable
(context, request)¶
- Bases:
-pyams_skin.table.BaseTable
Control panel thesaurus table
--
-
-
-
data_attributes
¶
-
-
-
-
-
title
= 'Registered thesaurus'¶
-
-
-
-
-
-
-class
pyams_thesaurus.zmi.manager.
ControlPanelThesaurusTrashColumn
(context, request, table)¶
- Bases:
-pyams_skin.table.TrashColumn
Thesaurus trash column
--
-
-
-
icon_hint
= 'Delete thesaurus'¶
-
-
-
-
-
permission
= 'pyams.ManageSystem'¶
-
-
-
-
-
-
-class
pyams_thesaurus.zmi.manager.
ControlPanelThesaurusValuesAdapter
(context, request, view)¶
- Bases:
-pyams_utils.adapter.ContextRequestViewAdapter
Thesaurus table values adapter
--
-
-
-
values
¶
-
-
-
-
-
-
-class
pyams_thesaurus.zmi.manager.
ControlPanelThesaurusView
(context, request)¶
- Bases:
-pyams_zmi.view.AdminView
,pyams_skin.container.ContainerView
Control panel thesaurus view
--
-
-
-
table_class
¶
- alias of
-ControlPanelThesaurusTable
-
-
pyams_thesaurus.zmi.term module¶
--
-
-
-class
pyams_thesaurus.zmi.term.
ThesaurusTermAJAXAddForm
(context, request)¶
- Bases:
-pyams_form.form.AJAXAddForm
,pyams_thesaurus.zmi.term.ThesaurusTermAddForm
Thesaurus term add form, AJAX view
--
-
-
-
get_ajax_output
(changes)¶
-
-
-
-
-
-
-class
pyams_thesaurus.zmi.term.
ThesaurusTermAJAXEditForm
(context, request)¶
- Bases:
-pyams_form.form.AJAXEditForm
,pyams_thesaurus.zmi.term.ThesaurusTermEditForm
Thesaurus term edit form, AJAX view
--
-
-
-
get_ajax_output
(changes)¶
-
-
-
-
-
-
-class
pyams_thesaurus.zmi.term.
ThesaurusTermAddAction
(context, request, view, manager)¶
- Bases:
-pyams_skin.viewlet.toolbar.ToolbarAction
Thesaurus term add action
--
-
-
-
label
= 'Add term'¶
-
-
-
-
-
modal_target
= True¶
-
-
-
-
-
url
= 'add-term.html'¶
-
-
-
-
-
-
-class
pyams_thesaurus.zmi.term.
ThesaurusTermAddForm
(context, request)¶
- Bases:
-pyams_zmi.form.AdminDialogAddForm
Thesaurus term add form
--
-
-
-
add
(object)¶
-
-
-
-
-
ajax_handler
= 'add-term.json'¶
-
-
-
-
-
create
(data)¶
-
-
-
-
-
edit_permission
= None¶
-
-
-
-
-
fields
= <z3c.form.field.Fields object>¶
-
-
-
-
-
icon_css_class
= 'fa fa-fw fa-tag'¶
-
-
-
-
-
legend
= 'Add new term'¶
-
-
-
-
-
nextURL
()¶
-
-
-
-
-
title
¶
-
-
-
-
-
updateWidgets
(prefix=None)¶
-
-
-
-
-
update_content
(content, data)¶
-
-
-
-
-
-
-class
pyams_thesaurus.zmi.term.
ThesaurusTermEditForm
(context, request)¶
- Bases:
-pyams_zmi.form.AdminDialogEditForm
Thesaurus term edit form
--
-
-
-
ajax_handler
= 'properties.json'¶
-
-
-
-
-
edit_permission
= 'pyams.ManageThesaurusContent'¶
-
-
-
-
-
fields
= <z3c.form.field.Fields object>¶
-
-
-
-
-
generic_changed
= False¶
-
-
-
-
-
icon_css_class
= 'fa fa-fw fa-tag'¶
-
-
-
-
-
legend
= 'Edit term properties'¶
-
-
-
-
-
title
¶
-
-
-
-
-
updateWidgets
(prefix=None)¶
-
-
-
-
-
update_content
(content, data)¶
-
-
-
-
-
usage_changed
= False¶
-
-
-
-
-
-
-
pyams_thesaurus.zmi.term.
handle_new_term_data_extraction
(event)¶
- Handle new term data extraction
-
-
-
-
-
pyams_thesaurus.zmi.term.
handle_term_properties_data_extraction
(event)¶
- Handle term properties data extraction
-
pyams_thesaurus.zmi.thesaurus module¶
--
-
-
-class
pyams_thesaurus.zmi.thesaurus.
BaseTreeNodesView
(request)¶
- Bases:
-object
Base tree nodes views
--
-
-
-
get_nodes
(term, result, subnodes=None)¶
-
-
-
-
-
-
-class
pyams_thesaurus.zmi.thesaurus.
ThesaurusAJAXAddForm
(context, request)¶
- Bases:
-pyams_form.form.AJAXAddForm
,pyams_thesaurus.zmi.thesaurus.ThesaurusAddForm
Thesaurus add form, AJAX view
--
-
-
-
get_ajax_output
(changes)¶
-
-
-
-
-
-
-class
pyams_thesaurus.zmi.thesaurus.
ThesaurusAddForm
(context, request)¶
- Bases:
-pyams_zmi.form.AdminDialogAddForm
Thesaurus add form
--
-
-
-
add
(object)¶
-
-
-
-
-
ajax_handler
= 'add-thesaurus.json'¶
-
-
-
-
-
create
(data)¶
-
-
-
-
-
edit_permission
= None¶
-
-
-
-
-
fields
= <z3c.form.field.Fields object>¶
-
-
-
-
-
icon_css_class
= 'fa fa-fw fa-language'¶
-
-
-
-
-
legend
= 'Add new thesaurus'¶
-
-
-
-
-
nextURL
()¶
-
-
-
-
-
title
= 'Utilities'¶
-
-
-
-
-
updateWidgets
(prefix=None)¶
-
-
-
-
-
-
-class
pyams_thesaurus.zmi.thesaurus.
ThesaurusAddMenu
(context, request, view, manager)¶
- Bases:
-pyams_skin.viewlet.toolbar.ToolbarMenuItem
Thesaurus add menu
--
-
-
-
label
= 'Add thesaurus...'¶
-
-
-
-
-
label_css_class
= 'fa fa-fw fa-language'¶
-
-
-
-
-
modal_target
= True¶
-
-
-
-
-
url
= 'add-thesaurus.html'¶
-
-
-
-
-
-
-class
pyams_thesaurus.zmi.thesaurus.
ThesaurusBreadcrumbAdapter
(context, request)¶
- Bases:
-pyams_skin.viewlet.breadcrumb.BreadcrumbItem
Thesaurus breadcrumb adapter
--
-
-
-
css_class
= 'strong'¶
-
-
-
-
-
label
¶
-
-
-
-
-
-
-class
pyams_thesaurus.zmi.thesaurus.
ThesaurusExportAJAXForm
(context, request)¶
- Bases:
-pyams_form.form.AJAXAddForm
,pyams_thesaurus.zmi.thesaurus.ThesaurusExportForm
Thesaurus export form, AJAX view
--
-
-
-
get_ajax_output
(changes)¶
-
-
-
-
-
-
-class
pyams_thesaurus.zmi.thesaurus.
ThesaurusExportForm
(context, request)¶
- Bases:
-pyams_zmi.form.AdminDialogAddForm
Thesaurus export form
--
-
-
-
ajax_handler
= 'export.xml'¶
-
-
-
-
-
-
-
configuration
= None¶
-
-
-
-
-
createAndAdd
(data)¶
-
-
-
-
-
download_target
= 'download_frame'¶
-
-
-
-
-
edit_permission
= None¶
-
-
-
-
-
exporter
= None¶
-
-
-
-
-
fields
= <z3c.form.field.Fields object>¶
-
-
-
-
-
icon_css_class
= 'fa fa-fw fa-download'¶
-
-
-
-
-
legend
= 'Export thesaurus terms'¶
-
-
-
-
-
title
= 'Thesaurus'¶
-
-
-
-
-
-
-class
pyams_thesaurus.zmi.thesaurus.
ThesaurusExportMenuItem
(context, request, view, manager=None)¶
- Bases:
-pyams_skin.viewlet.menu.MenuItem
Thesaurus export menu
--
-
-
-
icon_class
= 'fa-download'¶
-
-
-
-
-
label
= 'Export terms...'¶
-
-
-
-
-
modal_target
= True¶
-
-
-
-
-
url
= 'export.html'¶
-
-
-
-
-
-
-class
pyams_thesaurus.zmi.thesaurus.
ThesaurusHeaderAdapter
(context, request, view)¶
- Bases:
-pyams_skin.page.DefaultPageHeaderAdapter
Thesaurus views header adapter
--
-
-
-
back_target
= None¶
-
-
-
-
-
back_url
¶
-
-
-
-
-
icon_class
= 'fa fa-fw fa-language'¶
-
-
-
-
-
title
¶
-
-
-
-
-
-
-class
pyams_thesaurus.zmi.thesaurus.
ThesaurusImportAJAXForm
(context, request)¶
- Bases:
-pyams_form.form.AJAXAddForm
,pyams_thesaurus.zmi.thesaurus.ThesaurusImportForm
Thesaurus import form, AJAX view
-
-
-
-
-class
pyams_thesaurus.zmi.thesaurus.
ThesaurusImportForm
(context, request)¶
- Bases:
-pyams_zmi.form.AdminDialogAddForm
Thesaurus import form
--
-
-
-
add
(object)¶
-
-
-
-
-
ajax_handler
= 'import.json'¶
-
-
-
-
-
-
-
create
(data)¶
-
-
-
-
-
edit_permission
= None¶
-
-
-
-
-
fields
= <z3c.form.field.Fields object>¶
-
-
-
-
-
icon_css_class
= 'fa fa-fw fa-upload'¶
-
-
-
-
-
legend
= 'Import thesaurus terms'¶
-
-
-
-
-
nextURL
()¶
-
-
-
-
-
title
= 'Thesaurus'¶
-
-
-
-
-
updateWidgets
(prefix=None)¶
-
-
-
-
-
update_content
(content, data)¶
-
-
-
-
-
-
-class
pyams_thesaurus.zmi.thesaurus.
ThesaurusImportMenuItem
(context, request, view, manager=None)¶
- Bases:
-pyams_skin.viewlet.menu.MenuItem
Thesaurus import menu
--
-
-
-
icon_class
= 'fa-upload'¶
-
-
-
-
-
label
= 'Import terms...'¶
-
-
-
-
-
modal_target
= True¶
-
-
-
-
-
url
= 'import.html'¶
-
-
-
-
-
-
-class
pyams_thesaurus.zmi.thesaurus.
ThesaurusMenuHeader
(context, request)¶
- Bases:
-pyams_utils.adapter.ContextRequestAdapter
Thesaurus menu header adapter
--
-
-
-
header
= 'This thesaurus'¶
-
-
-
-
-
-
-class
pyams_thesaurus.zmi.thesaurus.
ThesaurusNameAdapter
(context, request)¶
- Bases:
-pyams_utils.adapter.ContextRequestAdapter
Thesaurus name adapter
--
-
-
-
name
¶
-
-
-
-
-
-
-class
pyams_thesaurus.zmi.thesaurus.
ThesaurusPropertiesAJAXEditForm
(context, request)¶
- Bases:
-pyams_form.form.AJAXEditForm
,pyams_thesaurus.zmi.thesaurus.ThesaurusPropertiesEditForm
Thesaurus properties edit form, AJAX view
-
-
-
-
-class
pyams_thesaurus.zmi.thesaurus.
ThesaurusPropertiesEditForm
(context, request)¶
- Bases:
-pyams_zmi.form.AdminEditForm
Thesaurus properties edit form
--
-
-
-
ajax_handler
= 'properties.json'¶
-
-
-
-
-
edit_permission
= 'pyams.AdminThesaurus'¶
-
-
-
-
-
fields
= <z3c.form.field.Fields object>¶
-
-
-
-
-
icon_css_class
= 'fa fa-fw fa-language'¶
-
-
-
-
-
legend
= 'Update thesaurus properties'¶
-
-
-
-
-
title
¶
-
-
-
-
-
updateWidgets
(prefix=None)¶
-
-
-
-
-
-
-class
pyams_thesaurus.zmi.thesaurus.
ThesaurusPropertiesMenuItem
(context, request, view, manager=None)¶
- Bases:
-pyams_skin.viewlet.menu.MenuItem
Thesaurus properties menu
--
-
-
-
icon_class
= 'fa-edit'¶
-
-
-
-
-
label
= 'Properties'¶
-
-
-
-
-
url
= '#properties.html'¶
-
-
-
-
-
-
-class
pyams_thesaurus.zmi.thesaurus.
ThesaurusTableElementEditor
(context, request, view)¶
- Bases:
-pyams_skin.table.DefaultElementEditorAdapter
Thesaurus table element editor
--
-
-
-
modal_target
= False¶
-
-
-
-
-
url
¶
-
-
-
-
-
view_name
= 'properties.html'¶
-
-
-
-
-
-
-class
pyams_thesaurus.zmi.thesaurus.
ThesaurusTermNodes
(request)¶
- Bases:
-pyams_thesaurus.zmi.thesaurus.BaseTreeNodesView
Get thesaurus nodes
-
-
-
-
-class
pyams_thesaurus.zmi.thesaurus.
ThesaurusTermParentNodes
(request)¶
- Bases:
-pyams_thesaurus.zmi.thesaurus.BaseTreeNodesView
Get thesaurus parent nodes
-
-
-
-
-class
pyams_thesaurus.zmi.thesaurus.
ThesaurusTermsMenuItem
(context, request, view, manager=None)¶
- Bases:
-pyams_skin.viewlet.menu.MenuItem
Thesaurus terms menu
--
-
-
-
icon_class
= 'fa-tags'¶
-
-
-
-
-
label
= 'Terms'¶
-
-
-
-
-
url
= '#terms.html'¶
-
-
-
-
-
-
-class
pyams_thesaurus.zmi.thesaurus.
ThesaurusTermsView
(context, request)¶
- Bases:
-pyams_zmi.view.InnerAdminView
Thesaurus terms view
--
-
-
-
search_query_params
¶
-
-
-
-
-
tree
¶
-
-
-
-
-
update
()¶
-
-
-
-
-
-
-
pyams_thesaurus.zmi.thesaurus.
handle_new_thesaurus_data_extraction
(event)¶
- Handle new thesaurus data extraction
-
-
-
-
-
pyams_thesaurus.zmi.thesaurus.
switch_term_extract
(request)¶
- Term extract switcher
-