Hello,

Its not clear to me what you are asking here.  What do you mean
outside of the form? You can make subcontroller classes like this:

class SubController(turbogears.controllers.Controller):
    @expose()
    def index(self):
        return dict()

class Root(turbogears.controllers.Controller):
    subcontroller = SubController()

Then you could access /subcontroller/ or /subcontroller/index.  And
also you could add additional methods as needed.  Also notice you
could move that SubController class to an outside module and import it
and do the same thing.

I actually have a directory(python package if you like to call it
that) called controllers/ that houses my controllers and it has
multiple directories with subdirectories.  Its a zoo.  It does help to
modularize though.

Tell me if I am being unclear or this is totally not answering your question.

-Ian

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