turbo thraxil

by anders pearson Sat 04 Mar 2006 17:05:58

i finally got around to porting this site to the TurboGears framework, which i've been using a lot lately.

it was already CherryPy + SQLObject, so it wasn't that big a deal.

i also used Routes to map the urls to controller methods. i'm generally ok with the default cherrypy approach, but for, the url structure is fairly complicated and Routes certainly made that a lot cleaner.

next, i'm working on refactoring as much of the code out into seperate mini REST applications as i can (like Tasty) to make things even more manageable. of course, i need a few more unit tests before i can really do that safely...

TAGS: programming python meta sqlobject cherrypy turbogears routes


A blog built on turbogears! Could this possibly unseat wordpress?

Could you elaborate more on how you integrated Routes with TurboGears? Did you just use a single top-level catch-all default method, or did you manage to hook more elegantly into TurboGears?

there's a catch-all default method on the root controller that gives Routes a crack at any url coming in. mostly Routes then passes it along to the right controller. it's not terribly elegant, but it's pretty straightforward.

formatting is with Markdown syntax. Comments are not displayed until they are approved by a moderator. Moderators will not approve unless the comment contributes value to the discussion.

remember info?