Pretty much every TurboGears application provides the end user with the
convenient way of modifying the underlying model. The automatic
database generation from a Python model is a powerful tool that allows
for the rapid start of the project without having to hassle with the DB
details until it is really needed.
actually that's a SQLObject feature, and that's the way it was meant to be.
Sure, most of non-trivial projects
require attention of a DB expert, but it is really needed in the
optimization cycles only.
one of it's main problems is that you can't mess too much with the DB without breaking the layer, which is one of the reasons we are migrating to SA
What about the similar approach for the view component? After all if
model contains a UnicodeCol, at some point it will probably need a
corresponding TextArea in the HTML page. Why not allow for the fast
quickstarts by generating "automatic" user interfaces for the model
(maybe with specifying read-only and invisible attributes)? These
trivial interfaces should and will be replaced with the better
templates at some point, but could make it very easy to create a
starting point for the design and to quickly evaluate the design ideas.
we will have to build a extension for kid in order to do that, and code generators are not the best pieces of code we can get. the only reason there is autogenerated code (quickstart) is to make a TG app compatible with setuptools.
Do you know if there are any activities in TG related to generating
templates for the model? And would anybody other then myself appreciate
such a feature? :)
I believe your going the way of fastdata, although that package provide a full stack of non modificable code.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "TurboGears" 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
-~----------~----~----~----~------~----~------~--~---

