> Show us your "admin" code.

I realize now where the problem is, but still not how to solve it. My
admin controller looks like this

class AdminController(controllers.Controller):
    
    # this admin should only return the frame holders
    @identity.require( identity.in_group("admin") )
    @expose("tgcms.templates.admin")
    def admin(self):
        return dict(base_url=base_url, msg=msg, )

    # first of the three frame view methods    
    @identity.require( identity.in_group("admin") )
    @expose("tgcms.templates.admin_top")
    def admin_top(self):
        msg = "I am the frame based menu top message"
        return dict( msg=msg )
   


The problem is that the template "admin" is just a frame set to pull in
the three frame based sub pages, admin_top, admin_left, admin_right. So
what happens is that the admin does get called, I get the three frames,
and each frame has the default method contents from the root
controller. 

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

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
-~----------~----~----~----~------~----~------~--~---

Reply via email to