Hi:
Recently I was thinking that DataController needs some refresh air, I prefer the explicit code for edit rather than the DataController, which works like the magic :-) For example, Identity framework give us some explicit code in controllers.py, so we could customize our identity requirement if the default way is not exactly what we need. We should do more of this. I'd plan to add a tg-admin command to generate the basic model admin (create, read, update, delete, a.k.a, CRUD) interface, include templates and logic. (ex: Rails scaffold) The usage scenario is here: 1. create a BookMarks Model with tg-admin sql create command 2. create the basic Model admin interface $ tg-admin crud [model name] [controller name] i.e tg-admin crud BookMarks Mark The tg-admin crud command will generate a 'MarkController' folder (from the supplied controller name) from template. The 'MarkController' can be imported to controllers.py to support the basic CRUD function. 3. Now users can customize their 'MarkController', The side effort is this way prevents the complicated controllers.py , and can well demonstrate how to import other controller directories from folder. (which many tg projects did) How do you think? Or any guidance for getting model classes' fields and their types/relations ? -- Fred --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
