william wrote:
> Michele,
>
> thanks, this is a good summary of my ideas.
>
> Quickstart should be able to generate a kind of pseudo-code. If
> re-generation are need, why not take advantage of the inheritance at
> class level (or at object level like in Zope). But this can add lot of
> complexity; I like simplicity ;-).
Unfortunately I can't comment on this since I've never used Zope.
>
> Personnally, I'll be very happy even if quickstart does only 80% of the
> task. If this is well documented where are the 20% to make manually.
>
> My dream is to have a Quickstart that build:
> - standard class controlers with view, edit and save methods.
>
> - very simple kid template that just displays data and forms.
>
> It's a kind of CatWalk, but at the code level.
I think once the forms/widgets system system settles down it would be
pretty easy to code a generic CRUDController you can inherit from to
accomplish repetitive tasks (just like django generics view). I haven't
looked at how CatWalk python side is designed bu it would be nice if
they could share some code to avoid duplications.
I'm thinking about something like this:
def News(CRUDController):
model = ...
maybe it's too magic? It's only an idea, it's also important to make it
easily customizable and simple, we should have a script to generate the
controller, kid templates and unit test.
>
> Concerning the impact of regeneration, I'm just thinking of Glade.
> They've made something that clearly define (in the generated code)
> where the developers can add his own code and where he cannot make
> modifications.
After Kevin's reply I'm convinced that it's approach to the problem
it's quite good.
Still I think that TG should also provide some sort of structure
generation even beyond quickstart:
"Herding the programmer down the path of conventions. Creating the
right directories, the right files, and calling them the right names.
It's conventions on rails."
I think about preparing base kid templates, unit tests...
IMHO giving right conventions without enforcing them it's a big selling
point.
>
> William
Ciao
Michele