Em Tuesday 29 January 2008 09:54:39 Nando Florestan escreveu: > http://code.google.com/p/webpyte/wiki/FormettoFramework > > I have written up the above page about why I was unsatisfied with the > interface of TG widgets (which puts widgets in our controllers instead > of our template) and why I am making a new interface: Formetto. > > I would appreciate your thoughts on this approach.
I didn't like this approach and left some of my comments on the website you posted. What I wrote there are the things that annoyed me the most at first sight. I am also not please in having the validation part moved to the model instead of the controller. This would require one to actually have more code on the model and would defeat some of the introspection that ORM tools offer, demanding the one write code for validating things instead of letting the ORM introspect the information from the database. You are also reducing the reusability of the code when you force a specific approach like you did. One can render widgets for several templates -- all that follow the Buffet API -- today, but has to use a XML templating system on your approach. Also, as a counter argument of your MVC separation, you are inserting logic on the view and this should be either on the M or C parts, but not on the V. For example, I believe there is too much on your "authors" field. -- Jorge Godoy <[EMAIL PROTECTED]> --~--~---------~--~----~------------~-------~--~----~ 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?hl=en -~----------~----~----~----~------~----~------~--~---

