I don't think it's possible with CherryPy (TG1). You can use an '_' as a
replacement for a '.', but there is no replacement char for '-', '+' or
'$'. Maybe you can suggest something on the CherryPy mailing list.
As a workaround, you can do this:
@expose()
def default(self, method):
if method == 'foo-bar':
...
else:
raise HTTPNotFound
Or, you can implement it as fooBar and then use an Apache alias or
rewrite to map foo-bar to fooBar.
In TG2, you would be also able to use routes.
-- Christoph
Oh, that's really nice and simple! I hadn't thought that Python would
allow you to do that, but actually why not.
-- Christoph
Got to love python :)
nice hack.