What about Kid's document() function? Couldn't we imagine to use this to "call" parts together from different controllers with their associated template fragments? What's the purpose of the fragment parameter in the expose decorator?
Admittedly I really don't feel comfortable with all that Ajax stuff (sorry I'm 42 ;-) and moved a hard way from terminal app's to the web so far) and I need another, more classic way to achieve a similar result. Please don't misunderstand me! I really like TG. I've been looking around more than 5 years and closely followed Webkit, TG, Django, Pylons ... and finally decided several months ago to use TG with MySQL to write an integrated POS and BO system for the shop I'm running. TG is a great deal and allows me to do things in such a natural way that I sometimes can't believe it's so easy. But, I really miss a simple way to do what I've described above. I really think that this is a missing feature. Marc On Jul 2, 1:45 pm, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote: > On Wednesday 02 July 2008 13:12:08 mettwoch wrote: > > > Hi, > > > I only partially agree because one same controller has to supply the > > dictionary with all the data for all the widgets on that single page. > > I believe that it's not the right way to write reusable code. A > > controller method should be specialized for one purpose and should be > > reusable along with it's (partial) template to display on a "composed" > > page. > > A controller method is responsible for serving one page. That's the design TG > uses, and there isn't much you can do about that. > > You are of course free to call other controller methods inside your controller > to get a dict with prepared values, or use support methods/functions to do > so. And you might even be able to delegate that to the template, using the > template to pull data instead of pushing it through the returned controller > method dict. > > Diez --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

