On Monday 07 December 2009 15:00:46 Sergei Beilin wrote: > Hi Diez. > > > What's your actual use-case? > > Sometimes I want to generate full URLs (for rss/atom feeds, etc.) when > the controller could be plugged in different locations.
Unfortunately, there is no nice way to do this, and IMHO this is a major hurdle for pluggable TG2 applications. I haven't found a way to inject TG2 controller actions using my tosca-widgets serverside callbacks, otherwise those would work. OTOH, the whole issue isn't to easy to solve. For example, what about template inheritance in those controllers? Where do the urls for the master-template come from - from the currently rendered controller, or from a global url_for-function? How do you customize e.g. templates of your pluggable controller? All this is hard stuff to make work in a smooth way, I'm even tempted to say there is no really nice way to do it. Try using widgets where you can is my answer. 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.

