Hey everyone, I have a web app that is divided into two areas, admin and user, with specific controllers for each. I hook all of the controllers together using something similar to:
Root.admin = admin.AdminController() Root.admin.tower = admin.TowerController() Root.admin.tower.tenant = admin.TenantController() Root.tenant = tenant.TenantController() Root.tenant.contact = tenant.ContactController() Root.tenant.booking = tenant.BookingController() This has been working fine. However, I'm wanting to secure the admin sub-controller to only be accessible to users in the admin group. Following the docs, I added the SecureResource class to the AdminController and TenantController, and specified the appropriate require property. This nows breaks the above method of connecting the controllers, for the example above it produces the following error: AttributeError: 'AdminController' object has no attribute 'tower' I'm unable to assign TowerController() to admin.tower now that it is also a SecureResource, which then breaks everything else down the list. Is there a more correct way for attaching sub-controllers? Thanks, - alex23 --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

