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

How to install Products.AddRemoveWidget

  1. Download and install ActivePython
  2. Open Command Prompt
  3. Type pypm install products.addremovewidget
 Python 2.7Python 3.2Python 3.3
Windows (32-bit)
1.4.5
1.5.0Never BuiltWhy not?
1.4.5 Available View build log
1.4.4 Available View build log
Windows (64-bit)
1.4.5
1.5.0Never BuiltWhy not?
1.4.5 Available View build log
1.4.4 Available View build log
Mac OS X (10.5+)
1.4.5
1.5.0Never BuiltWhy not?
1.4.5 Available View build log
1.4.4 Available View build log
Linux (32-bit)
1.4.5
1.5.0Never BuiltWhy not?
1.4.5 Available View build log
1.4.4 Available View build log
Linux (64-bit)
1.5.0 Available View build log
1.4.5 Available View build log
1.4.4 Available View build log
 
Author
License
LGPL
Dependencies
Lastest release
version 1.5.0 on Jan 9th, 2014

AddRemoveWidget + ComboBoxWidget

by Martin Aspeli <optilude@gmx.net>

This is a replacement for KeywordWidget which permits you to add items from a vocabulary (and optionally new items) using a pair of selection boxes with "add" and "remove" buttons to transfer items between them. It overlaps in functionality with InAndOutWidget, but does not suffer from InAndOut's requirement for all items in the "target" list to be selection upon form submission. I believe InAndOut does not allow textual items to be added by the user, though it does support adding of referenced objects, which AddRemove does not. You are advised to test both to find out which one is more suitable for your needs.

Optionally AddRemoveWidget supports keywords ordering.

Please see the docstring in AddRemoveWidget.py for a list of options you may pass to the widget to configure it.

You can also use the widget standalone, by defining a couple of variables (notably fieldName and vocabulary) and include the macro add_remove_box from widget_addremove.pt. See the comment in that file for details.

Also included is a ComboBoxWidget - it can be seen as supporting the same use case, when only one item may be selected. It presents a selection box from which to select a value, and a text box to enter an "other" value if none of the items in the list are sufficient.

Again, see the docstring in ComboBoxWidget.py, and the comment in widget_combobox.pt for details on how to use it within and outside Archetypes.

Changelog

1.5.0 (2012-06-27)
1.4.5 (2011-08-06)
  • Added ordering support as an optional feature. [piv]
  • Removed 'unicodeTestIn' call. This fixes #14. [jaroel/maerteijn]
  • Add empty element to submitContainer when no items are selected. Fixes #13. [jaroel/maerteijn]
1.4.4 (2010-08-16)
  • Added |nothing to tabindex in template for not breaking Plone 4 when using comboboxwidget. [saily]
1.4.3 (2010-08-06)
1.4.2 (2009-11-04)
  • Rerelease as someone seems to have done a 1.4.1 egg release at the end of last year already. [maurits]
1.4.1 (2009-11-04)
  • Added |nothing to tabindex in template for not breaking Plone 4. [maartenkling]
  • Removed old-style install, added profile, moved version to setup.py. [jensens]
1.4 - 2008-09-10
  • Fixed error with duplication of entries in the Available column. This fixes issue #9. [dunlapm]
  • Fixed the long-standing issue with non-ascii characters in terms gathered from the catalog. Proper vocabularies should be just that, proper vocabularies where the "id" of a term consists of ascii characters and the "value" can contain unicode. Check the Vocabulary class in Products.Archetypes for a reference. [dunlapm]
1.3 - 2008-07-03
  • Removed unecessary style attribute on the combo box text field which broke rendering in IE 7. [fschulze]
1.2 - 2008-06-27
  • Added logic for drop-in replacement of KeywordWidget [dunlapm]
1.1 - 2008-05-20
  • Initial release

Subscribe to package updates

Last updated Jan 9th, 2014

Download Stats

Last month:2

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.