On Wednesday 02 July 2008 14:30:23 mettwoch wrote: > What about Kid's document() function?
Not really helping, as it does not provide means for passing needed parameters and such. > 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? It might be helpful. What is missing is a way to essentially dispatch a call to a controller method by a path, from within a template. Out of my head I don't know how to do that, but you should be able to get a hold on the root controller and then work your way down. Admittedly, there is some magic cherrypy does you need to mimic, such as dispatching to default() or index(). Once you have such a function, you can put it into the template namespace and call it using py:replace and such. > 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. You might have a point there - however, so far I'm not aware of a canned solution. 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 -~----------~----~----~----~------~----~------~--~---

