http://trac.turbogears.org/turbogears/wiki/SimpleAdminIdeas
Maybe you should also take a closer look at this discussion:
Ciao
Michele
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.
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
The generated file could be used as is or could be modified.
If the model change :
* if checksum matches, then file could be regenerated
* else (or if no checksum), file generated is prefixed with "new_"
Modication in the model could be apply manually into the controller and
html, like for the database.
Runtime widget generation need +/- to understand the widget generation
framework and how-to customize it. If you look at zope3, it's some
study and configuration. In the case of a tool, users don't need to
understand/learn a new framework to customize its application. They
only need to learn it if they want to customize the generation (adding
widgets, create a new set of widget,...)
No, generated files are suggestions. So, from the "new_*" files, the
user could take the missing widget to copy it into his own "customized"
files. User could change the model without generate files.
I like also the Plone/Archetypes (only read doc about it a year ago).
Those framework doesn't support all customization, But the user could
need to be able to manage the layout, to add help anchor,... And do
this with a full api is like provide a api for desktop gui (wxwidget,
Qt, Gtk...)