On 7/3/07, Paul Johnston <[EMAIL PROTECTED]> wrote: > Hi, > > I would like to call a Python function from within a TG widget template. How > can I do this? I tried: > > def myfunc(x): > that is generally a bad idea, you are mixing presentation logic with bussiness logic, why can't you just define the function and pass it's results as a variable? is x something defined in runtime inside the template? do you have access to X before if so then the first approach I suggested is the way to go, if not please post an example of what your actually trying to do. > > > >
--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

