Hi,
Near the bottom of the doc, the sample code for "Expaning your
TurboGears Application" (should be "Expanding", btw) lists this for
the Root controller:
class Root(controllers.RootController):
@expose()
def index(self):
return "<h1>Hello World</h1>"
@expose()
def default(self, *args, **kw):
return "This page is not ready"
sub = SubController()
However, at least on my setup (Python 2.5, TG1.0.4b3, WinXP), CherryPy
won't pick up on the subcontrollers unless they are listed *first*,
before any function definitions. Otherwise I get a 404 from
mapPathToObject.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TurboGears Docs" 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-docs?hl=en
-~----------~----~----~----~------~----~------~--~---