[TurboGears] Re: model - widgets

2006-05-01 Thread Tim Lesher
On 5/1/06, Joris [EMAIL PROTECTED] wrote: Is there no way to automate the conversion between sqlobject-properties (with added validators) to forms? It sounds like you want the FastData module. It does just what you want. Unfortunately, it's not quite as polished and ready as the rest of TG,

[TurboGears] Re: model - widgets

2006-05-01 Thread Alberto Valverde
On 01/05/2006, at 14:23, Joris wrote: I start a TG project and define a nice model. Then I find myself repeating much of the model for the widgets/ forms. So much, that I've started doing copy/pastes. Is there no way to automate the conversion between sqlobject- properties (with added

[TurboGears] Re: model - widgets

2006-05-01 Thread Michele Cella
Joris wrote: Hi all, This is probably an obvious and/or stupid question since I'm not a Programmer by any measure, but please bear with me. I start a TG project and define a nice model. Then I find myself repeating much of the model for the widgets/forms. So much, that I've started

[TurboGears] Re: model - widgets

2006-05-01 Thread Joris
Install FastData and use formmaker.fields_for: http://trac.turbogears.org/turbogears/browser/projects/FastData/trunk/tgfastdata/formmaker.py#L124Example:from model import Pagefields_list = fields_for(Page)And you're done. ;-) Argl, I could have used that info 8 hours ago, when I started that