On Dec 12, 2007 11:29 AM, percious <[EMAIL PROTECTED]> wrote: > 2. Yes, you will be stoned by the MVC community ;-). TG gives you a > really easy way > to collect field data, so I cannot fathom why you would want to do > that in a template. I mean, > just create a new form and have a controller method that is in your > root controller to pick up the data.
I don't think this question has anything to do with forms--I think he's asking "how can I change text in my master.kid to something that comes from my db?" There are only two approaches I can think of: 1. Put an inline query in the master.kid (as you mentioned), or 2. Put the query in every method of the controller, and pass the results to the template via the controller method's dictionary. 2) is the MVC purist way to do it, but honestly, I don't think I'd want to maintain that code. Practicality beats purity... If there's another way, I'd love to hear it. -- Tim Lesher <[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 -~----------~----~----~----~------~----~------~--~---

