Why not simply use /sr/action/id without any url remapping? What is the 
advantage of having
an argument and function name order reversed? For viewing the record you 
still need to call
a specific function, e.g. /sr/view/1. Anyway, if you want it your way, try 
this:

routes_in = ( 
  ("/sr/(\d+)/(.+)", r"/init/sr/\2/\1"),
  ("/sr/(\d+)", r"/init/sr/view/\1"),
  ("/sr", "/init/sr"),
)

Reply via email to