It's very likely that you are doing more work than you need to. By default, TG uses Object Dispatch, which sets up the way to map URLs somewhat differently.
I just wrote a reply to Guyren in this forum the other day. Check that out, and look at the tutorials. While I won't say it's impossible that you do need to use Routes, I will say it's very unlikely. If you do need to use it, this forum also has people who have implemented a routes controller, making it much easier for you. On Wed, Jul 14, 2010 at 5:09 PM, Gisborne <[email protected]> wrote: > Almost a week now, trying to sort out why my routes are getting > ignored in TG 2.1. > > I've pinned the place where it's happening down to routes/ > middleware.py, line 131: > response = self.app(environ, start-response) > > At this point, it has already found match, which has the right > controller and method. > > But the path through self.app runs the matching *again*, only this > time it uses a blank mapper. I've yet to work out why, but I thought > this might be enough for someone here to know. > > -- > 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]<turbogears%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/turbogears?hl=en. > > -- Michael J. Pedersen My IM IDs: Jabber/[email protected], ICQ/103345809, AIM/pedermj022171 Yahoo/pedermj2002, MSN/[email protected] -- 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.

