Welcome, guest | Sign In | My Account | Store | Cart

Notice! PyPM is being replaced with the ActiveState Platform, which enhances PyPM’s build and deploy capabilities. Create your free Platform account to download ActivePython or customize Python with the packages you require and get automatic updates.

Download
ActivePython
INSTALL>
pypm install collective.formwidget.uberselect

How to install collective.formwidget.uberselect

  1. Download and install ActivePython
  2. Open Command Prompt
  3. Type pypm install collective.formwidget.uberselect
 Python 2.7Python 3.2Python 3.3
Windows (32-bit)
0.1 Available View build log
Windows (64-bit)
0.1 Available View build log
Mac OS X (10.5+)
0.1 Available View build log
Linux (32-bit)
0.1 Available View build log
Linux (64-bit)
0.1 Available View build log
 
Author
License
GPL
Lastest release
version 0.1 on Jan 5th, 2011

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.

Subscribe to package updates

Last updated Jan 5th, 2011

Download Stats

Last month:1

What does the lock icon mean?

Builds marked with a lock icon are only available via PyPM to users with a current ActivePython Business Edition subscription.

Need custom builds or support?

ActivePython Enterprise Edition guarantees priority access to technical support, indemnification, expert consulting and quality-assured language builds.

Plan on re-distributing ActivePython?

Get re-distribution rights and eliminate legal risks with ActivePython OEM Edition.