Anyone have suggestions for the following routes:

I want:
sr = controller

sr/1 = view record 1
sr/1/update = update
sr/1/delete = delete
sr/1/clone = clone
sr/1/<etc> = other actions

So I am thinking of the following route:
Map sr/<id>/action ---> sr/<action>/<id>

routes_in = (
             (r'/sr/(?P<id>\d+)(?P<any>.*)', r'/init/sr\g<any>/
\g<id>'),
             (r'/sr', r'/init/sr'),
)

It seems that my:  (r'/sr/(?P<id>\d+)(?P<any>.*)', r'/init/sr\g<any>/
\g<id>') is not working.

Reply via email to