> >Why not have a way in which the template says it needs this and that > >widget and if those widgets need some parameters from the controller > > I think you could do this, actually. Just import the appropriate symbols > in a <?python > block and then reference them later on in the template. > > I assumed that the usual practice of passing them in the the dictionary > was to discourage having Python code in the template (which can easily get > out of hand). >
That is actually true, why haven't I thought of that? :) I'll give it a shot, although I agree that having python code in the template is not a good idea, but maybe just for once it's all right. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

