On 6/6/11 5:04 AM, Vitaliy Podoba wrote:
Hi,
I've added items ordering support into AddRemoveWidget as an optional
feature. This is changeset I committed in order to make it all work:
http://dev.plone.org/archetypes/changeset/13670/Products.AddRemoveWidget/
trunk
But before we can release this I'd like to hear from package
contributors if they see any issues with my above patch.
FWIW, looks pretty good and clean to me but I don't have a good frame of
reference to compare with. I'd probably push it out and wait for
complaints (if any come, which is not likely; unless you broke existing
functionality).
How it works
------------
Existing widget integrations won't be concerned as by default ordering
support is switched off, and to enable it you need to pass
'ordered=True' widget parameter.
By default keywords are sorted alphabetically. But after switching
'ordered' option on 'Up' and 'Down' buttons appear right after
'Selected' field which allow user to sort items manually. It works much
the same way how z3c.form's ordered select widget does.
Thanks for your thoughts and any suggestions are welcome,
Vitaliy Podoba
---
Alex Clark ยท http://aclark.net
_______________________________________________
Product-Developers mailing list
[email protected]
https://lists.plone.org/mailman/listinfo/plone-product-developers