Today I was thinking exactly the same thing.

AFAIK, at least from looking at the RubyonRails screencast, that's how
the ROR scaffolding thing works.
They have a set of scripts, scaffold it's one of these, and you can do:

./script/generate scaffold ModelName ControllerName

With this you get a view and a controller properly populated which you
can elaborate on.

There is also a dynamic scaffold function that you can call from inside
your controller:

scaffold :ModelName

If I got it correctly this solution suffers from the problems Ronald
already pointed out.

Ciao
Michele

David Bernard wrote:
> Michele Cella wrote:
> > I've added (hope you don't mind Kevin) your work to this turbogears
> > wiki page:
> >
> > http://trac.turbogears.org/turbogears/wiki/SimpleAdminIdeas
>
> I take a look over wiki and proposal about CRUD. And I've got a
> question :
> Why generate form at runtime, why not at design time ?
> May be a tool could generate from the SQLObject :
> * the controler
> * the templates
> 
> Then developer could customize like they want the result.

Reply via email to