[Product-Developers] Items ordering support in Products.AddRemoveWidget
bunke.hendrik at googlemail.com
Wed Jul 6 09:53:40 UTC 2011
I've just implemented it and it seems to work pretty well so far.
Made my day, thanks a lot!
--On 2011-06-06 12:04, Vitaliy Podoba wrote:
> I've added items ordering support into AddRemoveWidget as an optional
> feature. This is changeset I committed in order to make it all work:
> But before we can release this I'd like to hear from package
> contributors if they see any issues with my above patch.
> 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
> Product-Developers mailing list
> Product-Developers at lists.plone.org
Dr. Hendrik Bunke
http://hbxt.org is temporarily offline
More information about the Product-Developers