[EMAIL PROTECTED] schrieb:
Can I just create multiple classes in separate files that //all subclass RootController
No, you have only one RootController, the other controllers should subclass turbogears.controllers.Controller
and then append to __init__.py //more imports//?
Yep.
perhaps add something like this to __init__.py ?? from myproject.controllers.anotherfile1 import AnotherRootControllerSubClass1 from myproject.controllers.anotherfile2 import AnotherRootControllerSubClass2 from myproject.controllers.anotherfile3 import AnotherRootControllerSubClass3
from myproject.controllers.anotherfile1 import AnotherControllerSubClass1 from myproject.controllers.anotherfile2 import AnotherControllerSubClass2 from myproject.controllers.anotherfile3 import AnotherControllerSubClass3 class MyRoot(controllers.RootController): foo = AnotherControllerSubClass1() bar = AnotherControllerSubClass2() blah = AnotherControllerSubClass3() Chris --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

