I wanted to translate
a(1).b(2)into the TurboGears URL /a/1/b/2. A browser making a request for /a/1/b/2 would trigger that code.
This page explains how to do it. You build a single default method that catches everything and then does introspection to figure out where to send the request.
It works fine, but it isn’t nearly as obvious or concise as the regular-expression approach I’ve seen in rails and Django.