On 3/28/06, Jorge Godoy <[EMAIL PROTECTED]> wrote:
> I am looking for some options on declaring and using common widgets for
> several forms...
>
> For example, I have two forms that are almost identical, except for one or two
> fields where I change a label from "client" to "supplier".  I was thinking on
> using WidgetsList for the common parts and concatenating it with the different
> parts...  Is it a good solution?  (I'd eliminate a lot of redundancy here...
> This is why I'm willing to change the way things are done today.)

That seems reasonable. The thing to keep in mind is that a WidgetsList
is a standard list. That means it's mutable and all that. As long as
you keep that in mind, you should be able to make good use of
extend(), etc. to reuse a common set of widgets.

Kevin

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to