On Jan 18, 2007, at 5:36 PM, Damjan wrote:


No, you have only one RootController, the other controllers should subclass
turbogears.controllers.Controller
...
class MyRoot(controllers.RootController):
    foo = AnotherControllerSubClass1()
    bar = AnotherControllerSubClass2()
    blah = AnotherControllerSubClass3()

refactoring my controller modules I've noticed that it's a bit
confusing that you don't instantiate the RootController but you need to
explicitly create instances of all the other Controller classes.

The RootController is instantiated in start-yourapp.py which is, technically, part of your app too ;)

Alberto

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