On Mar 16, 2006, at 8:42 AM, Michele Cella wrote:
> I think we should support RepeatingWidget but I'm contrary to yet
> again
> rename the function we use, I've not a clear understanding of how
> repeating widget work yet (never looked at them) so I can't see the
> solution (I will look into them soon) but I would like to not change
> again the philosophy we use, this means that error_for, value_for,
> options_for should stay the same IHMO otherwise we need another change
> to widget templates, also keep in mind that with my last update
> error_for, value_for, options_for are able to work with a dotted
> notation (a that's very important along with display_field_for), for
> example:
>
> error_for("sub.sub2.age"), value_for("sub.sub2.age")
>
> and so on, if repeating widget should work with a list I can't see any
> problem if error_for returns a list and you do:
>
> error_for("sub.sub2.age")[0]
>
> and so on
I think it could be posssible but we need to investigate them a bit
further to see how they're handled.
Till now, the only related docs I've found are the NestedVariables at
Formencode http://formencode.org/Validator.html and a javascript
library by Ian Bicking at http://blog.ianbicking.org/repetition-
javascript-library.html
>
> I'm a bit worried that we should stop changing things around since
> widget are getting more and more used by many people with 0.9a1 out.
> ;-)
Not a real change is needed to the API, just make sure we overload
the accessors to handle lists too.
>
> My ideal scenario, once we finish with this thing (Compound) and
> repeating widgets, is doing a feature freeze and documenting Widgets
> really well, that's the only way to let user use them in the right way
> and with all their potential. :-)
Agree ;)
Alberto
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TurboGears Trunk" 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-trunk
-~----------~----~----~----~------~----~------~--~---