Hi!
I'd like to announce that after some time fighting and looking for bugs me and
Alberto have finally release version 1.0 of Select Shuttle.
This new version adds more functionality over the previous versions, but due
to some TG changes we had to make huge changes to the API.
So, up to 0.94 where you had something like
${shuttle.display(available, data_right = selected)}
now you'll have
${shuttle.display(shuttle_data)}
where
shuttle_data = dict(
available = all_available_options,
selected = selected_options,
)
Also, the nomenclature for labels and buttons was changed to make their use
more intuitive. Change all "*left" to "*available" and "*right" to
"*selected" (e.g. name_left => name_available).
As a bonus, the text for the buttons that move just the selected options can
also be customized (it used to be fixed as "<<" and ">>"), making it possible
to have a custom text here.
But this is not the end of the show! The best part is yet to come. ;-)
After you move options you'll get a list in your controller and it is already
decoded for you so that you just have to iterate over it to perform the
desired option.
I'll be opening my Trac with some documentation, screenshots and other stuff
about this widget soon (I hope this weekend, when I pretend to start a new
project targeted towards Brazilian people with Roger ;-)).
I hope we didn't annoy too much the ones that were using previous versions and
that we can incentivate people to share their widgets and create new and more
complex widgets.
Some difficulties for complex widgets were found while developing this new
version and I'll be documenting them, their solutions and what we have decided
to do to solve them while keeping our code "simple".
All of this would be impossible without Alberto's help and expertise.
The old shuttle is also available from Pypi.
NEW AND IMPROVED:
http://cheeseshop.python.org/pypi?:action=display&name=Select-Shuttle&version=1.0
old and "deprecated":
http://cheeseshop.python.org/pypi?:action=display&name=Select-Shuttle&version=0.94
We highly recommend running the new shuttle since only that one will be
maintained. The old version was also stable and functional, but required a
lot more work on the controller to be used.
Thanks for your attention and soon you'll have more details.
--
Jorge Godoy <[EMAIL PROTECTED]>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/turbogears
-~----------~----~----~----~------~----~------~--~---