On Tue, Jan 6, 2009 at 1:48 AM, Lukasz Szybalski <[email protected]> wrote:
>
>>>>>>>
>>>>>>> The paster crud command that lives in tg.devtools is currently
>>>>>>> unmaintained and out of date.
>>>>>>>
>>>>>>> I've added a ticket to either update it or remove it.
>>>>>>>
>>>>>>> http://trac.turbogears.org/ticket/2102
>>>>>>>
>>>>>>> You can see a little bit about how it works from here:
>>>>>>>
>>>>>>> http://turbogears.org/2.0/docs/main/movie_tutorial.html
>>>>>
>>>>> What I initially though crud was for was automatic design of the app
>>>>> based on the database content. It would be great if there was a tool
>>>>> that would:
>>>>>
>>>> well it's actually two different solutions to the same problem.
>>>> a- code generation for each entity
>>>> b- generic code to handle all entities.
>>>>
>>>> By entity I'm referring to a CRUD unit.
>>>>
>>>> IMO option a is suboptimal and well plain bad, specially because when
>>>> you need to regenerate you will lose your local changes. And it's
>>>> something I never saw as "good", even though I had have to implement
>>>> several systems with that "paradigm" as for option b, that's really
>>>> the best way for this type of stuff (if you can make it fast, which in
>>>> python you can) we have several proves of that,
>>>
>>> Do any of the 3 apps you mention do "b" out of box?
>>>> sprox,
>>>> rum,formalchemy,etc.
>>>
>>> If yes it would seem to me that we could create a little tutorial.
>>>
>> yes, have you seen any of the docs for any of them?
>
> yes and no
>
> -rum - docs are overwhelming.. I'm not sure where to start and what to
> look for...although this tutorial seems to be it except it somehow
> magically got the interface and I'm not sure how it fits into tg2
> (http://docs.python-rum.org/user/tutorial.html)
> -formalchemy doesn't seem to use tw widgets
> - sprox seem to be doing it but is that enough? http://sprox.org/
>
> I was thinking more of a command that creates controller.py that has a
> def select() (which has a select widget) , def add() (which has an
> update form), etc...

then it seems you didn't understood what I said in the first email.
option "b" is all about NOT creating a file with code. That is call
code generation. And IMO it's a very bad practice, but some people do
like it. (or don't know/have anything better)

>
> If yes then I guess we can remove the crud.
>
for the last time that IS the purpose of tgcrud command. Sorry if this
sounds rud but it seems you are commenting on a topic you have little
knowledge about.

> Lucas
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears Trunk" 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-trunk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to