Skip to main content

Overview

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.

Example:

>>> 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.

Release files for collective.formwidget.uberselect 0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for collective.formwidget.uberselect 0.1
File Size Uploaded
collective.formwidget.uberselect-0.1.tar.gz 3.0 kB Details

Release files / collective.formwidget.uberselect-0.1.tar.gz

Download URL collective.formwidget.uberselect-0.1.tar.gz
Size 3.0 kB
Tags Source
SHA-256 checksum
How to use checksums
04fde5bbcf4bead5af684b5aee58d9a68894e24b8321f2423100cab514481671
BLAKE2b-256 checksum
How to use checksums
4e8516310ddace0d6a732990c314ae5122491204fe6492ea36d612ad51d68346
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.1 This release

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page