Hi, I started toying with TG a couple of weeks ago and first of all
want to say that it is joy to work with. I'm really impressed about
the shallow learning curve and it will certainly replace my current
SQLObject/cherrypy/cheetah setup.

Currently I'm trying to figure out how one can build more complex
website by combining two separate application (eg. the wiki and a
forum) cherrypy style. First I attempted to create a separate
controller class and mounted that to the Root controller, which of
course worked perfectly (access trough url-like:
localhost:8080/subcontroller).

Extrapolating on this I figured it should also be possible to import a
controller from a different TG project and mount this one to the root
controller (localhost:8080/subap). This works fine when the controller
method returns a dictionary or a string. Yet when KID is involved the
server appears to enter an infinite loop after:

2005/11/16 01:36:10 HTTP INFO Serving HTTP on http://localhost:8081/
2005/11/16 01:36:20 HTTP INFO 127.0.0.1 - GET /subap HTTP/1.1
127.0.0.1 - - [2005/11/16 01:36:20] "GET /subap HTTP/1.1" 302 157
2005/11/16 01:36:20 HTTP INFO 127.0.0.1 - GET /subap/ HTTP/1.1
setting default site
2005-11-16 01:36:20,756 turbogears.view DEBUG Recompiling template for
subap.templates.welcome
2005/11/16 01:36:30 HTTP INFO SystemExit raised: shutting down
autoreloader
2005/11/16 01:36:30 HTTP INFO CherryPy shut down

Maybe I'm forgetting something really stupid, but skimming trough the
templates and view.py I can't see why the server would get stuck in a
loop. I have read about the  other issues in:
http://groups.google.nl/group/turbogears/browse_thread/thread/90d51b2d8b7c2ceb/4c0fc7645730526f?q=application&rnum=5#4c0fc7645730526f
But currently i'm not even at the point that i can worry about those
issues :)

You can recreate this situation for your self by quick starting two new
projects and modifying the controller of the first to import and mount
the root controller of the second.

Reply via email to