On Sun, 2007-25-03 at 22:02 +0100, Elvelind Grandin wrote: > not sure what the problem is. what does the url's in the frameset point too?
The urls in the frameset point to "admin_top" etc, which is working after putting the line: admin_top = admin.admin_top in my controller. I was just wondering if this is the customary way to do it as it seems like extra broilerplate to be typing those each in. Leading me to belive I'm doing something in a roundabout way ( as usual! ) Iain > > On 3/25/07, iain duncan <[EMAIL PROTECTED]> wrote: > > > > On Sun, 2007-25-03 at 16:10 -0300, Jorge Godoy wrote: > > > iain duncan <[EMAIL PROTECTED]> writes: > > > > > > > So I need a way to make it clear to tg that admin_top, left, right all > > > > go through the admin controller. I wasn't using arguments to the admin > > > > method because I wanted them each to have different templates. Is there > > > > a way to specify the desired template based on a controller method > > > > argument? Or should I have something in root that says: > > > > > > > > admin_left = AdminController.left > > > > > > This is something worth trying. > > > > > Thanks, this seems to do the trick. > > > > class Root(controllers.RootController): > > admin = AdminController() > > admin_top = admin.admin_top > > admin_left = admin.admin_left > > admin_right = admin.admin_right > > > > > > But, is it the right way to do it? Wonder if different templates and one > > bigger method would be more elegant. > > > > Thanks > > Iain > > > > > > > > > > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

