You are here: Home / LBN / Up2date / Plone and Zope / BastionLinux 25 / plone.formwidget.contenttree-1.1.0-1.lbn25.noarch

plone.formwidget.contenttree-1.1.0-1.lbn25.noarch

Package Attributes
RPM  plone.formwidget.contenttree-1.1.0-1.lbn25.noarch.rpm Architecture  noarch Size  112913 Created  2021/11/29 02:43:15 UTC
Package Specification
Summary AJAX selection widget for Plone
Group Application/Internet
License GPL
Home Page http://pypi.python.org/packages/source/p/plone.formwidget.contenttree/plone.formwidget.contenttree-1.1.0.zip
Description

plone.formwidget.contenttree is a z3c.form widget for use with Plone. It uses the jQuery Autocomplete widget, and has graceful fallback for non- Javascript browsers.

There is a single-select version (AutocompleteSelectionFieldWidget) for Choice fields, and a multi-select one (AutocompleteMultiSelectionFieldWidget) for collection fields (e.g. List, Tuple) with a value_type of Choice.

When using this widget, the vocabulary/source has to provide the IQuerySource interface from z3c.formwidget.query and have a search() method. The easiest way to do this is generate one with one of:

  • plone.formwidget.contenttree.PathSourceBinder(navigation_tree_query=None, *kw) plone.formwidget.contenttree.ObjPathSourceBinder(navigation_tree_query=None, *kw) plone.formwidget.contenttree.UUIDSourceBinder(navigation_tree_query=None, **kw)

Where ``navigation_tree_query`` is some restrictions that should be applied to any Catalog query. The rest of the arguments are used to form a filter (see source.py).

``PathSourceBinder`` and ``ObjPathSourceBinder`` store the selected object's path in the field value. This means that the link will be broken if the object is moved. ``UUIDSourceBinder`` stores UUID references, so will handle pages being moved.

If you do not want to filter the content tree whatsoever, there are some pre-baked instances too:

  • plone.formwidget.contenttree.path_src_binder plone.formwidget.contenttree.obj_path_src_binder plone.formwidget.contenttree.uuid_src_binder
Requires
rpmlib(PayloadFilesHavePrefix)  
rpmlib(FileDigests)  
/bin/sh  
rpmlib(CompressedFileNames)  
rpmlib(PartialHardlinkSets)  
rpmlib(PayloadIsXz)  
Provides
plone.formwidget.contenttree
python2.7dist(plone.formwidget.contenttree)
python2dist(plone.formwidget.contenttree)
Obsoletes
plone.formwidget.contenttree-egginfo

Document Actions