Hi Michele,
Cool, just a nit:
Could you use and underscore instead of '-' betwen widget.field_id and value? I don't like to see "price-2" as a radio option. Underscores make it clear (in the HTML/javascript/css) that we are talking about strings.
I told you this was a nit =)
Cheers.
Ronald

On Jan 30, 2006, at 7:40 PM, Michele Cella wrote:


Hi,

I the last few days I've been working on an API cleanup (not yet
finished but mostly so) for the widgets system.

I tried to make them intuitive to use, to customize (very simple
templates, compare them with what TG is actually using) by moving a lot
of logic from templates to where it belongs and provide good default
widgets for forms managing.

What I mean with the last thing?

That for example you get:

SingleSelectField
MultipleSelectField
RadioButtonList
CheckBoxList

they all work in the same way:
 - SingleSelectField and RadioButtonList for a single choiche
 - MultipleSelectField and CheckBoxList for multiple choiches

the only difference stands in their look&feel.

I would like interested people to try them, I've tried to keep them
compatible with the old ones but some things had to be changed.

You can play with my work using a small TG project I've attached here:
http://trac.turbogears.org/turbogears/attachment/ticket/490/ NewWidgets-0.5.tar.gz?format=raw

You find forms widgets inside forms.py. :-)

Give it a try and report here your opinions, I'm going to have few time
to do any other work.

Ciao
Michele

PS
Date* are not there.


________________________________
Ronald Jaramillo
mail: ronald AT checkandshare DOT com
blog: http://www.checkandshare.com/blog



Reply via email to