Skip to main content

An uberselection widget for z3c.form.

Project description


This package provides a query source compatible with z3c.formwidget.query which combines to an uberselection widget for the z3c.form form generation framework.

The native value type for the widget is Archetypes UID collections.


>>> from collective.formwidget.uberselect.archetypes import \
...     ArchetypesContentSourceBinder
>>> class ISelection(interface.Interface):
...     items = schema.Set(
...         title=u"Selection",
...         description=u"Search for content.",
...         value_type=schema.Choice(
...             source=ArchetypesContentSourceBinder()
...         )
...     )

Weak references

A recipe to store references as persistent.wref.WeakRef instead of UID is to use the uid2wref adapter between the form and the context.

>>> from collective.formwidget.uberselect.wref import uid2wref
>>> Factory = uid2wref(ISelection['items'])

To store weak references instead of UIDs you would register such a factory as a component adapting the context. The factory automatically provides the interface which defines the field.

Project details

Release history Release notifications

This version
History Node


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
collective.formwidget.uberselect-0.1.tar.gz (3.0 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page